diff options
author | Tim Hatch <tim@timhatch.com> | 2010-06-04 15:51:47 -0700 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2010-06-04 15:51:47 -0700 |
commit | 0cb00f463e59526b999046a463adc0e30e05a2c1 (patch) | |
tree | 5232286902b7269faed2902058241d6f808d5409 | |
parent | b7a25eea0b27b8c1122f8b2eeeabeea07e661445 (diff) | |
download | pygments-0cb00f463e59526b999046a463adc0e30e05a2c1.tar.gz |
Make BlitzMax Basic more lenient on floating point numbers
-rw-r--r-- | pygments/lexers/compiled.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/compiled.py b/pygments/lexers/compiled.py index c8c501d5..7c7970ab 100644 --- a/pygments/lexers/compiled.py +++ b/pygments/lexers/compiled.py @@ -2396,7 +2396,8 @@ class BlitzMaxLexer(RegexLexer): # Data types ('"', String.Double, 'string'), # Numbers - (r'[0-9]\.[0-9]*(?!\.)', Number.Float), + (r'[0-9]+\.[0-9]*(?!\.)', Number.Float), + (r'\.[0-9]*(?!\.)', Number.Float), (r'[0-9]+', Number.Integer), (r'\$[0-9a-f]+', Number.Hex), (r'\%[10]+', Number), # Binary |