diff options
author | Marshall Ward <marshall.ward@gmail.com> | 2018-01-06 11:45:30 +1100 |
---|---|---|
committer | Marshall Ward <marshall.ward@gmail.com> | 2018-01-06 11:45:30 +1100 |
commit | c5629b93b8128c9a4925c1d118b6cb9b1d468f7a (patch) | |
tree | c08ca03ba6428821d76324a287b3be10b5538092 | |
parent | 1c98199b06c059434b7b16c85b6568b6e6d6c9a7 (diff) | |
download | pygments-c5629b93b8128c9a4925c1d118b6cb9b1d468f7a.tar.gz |
Safer Fortran E-notation without decimal
Fortran e-notation values without decimal now require the presence of e (or d)
and at least one exponent value.
-rw-r--r-- | pygments/lexers/fortran.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/fortran.py b/pygments/lexers/fortran.py index 61b8aaeb..5165bac0 100644 --- a/pygments/lexers/fortran.py +++ b/pygments/lexers/fortran.py @@ -158,7 +158,7 @@ class FortranLexer(RegexLexer): (r'\d+(?![.e])(_[a-z]\w+)?', Number.Integer), (r'[+-]?\d*\.\d+([ed][-+]?\d+)?(_[a-z]\w+)?', Number.Float), (r'[+-]?\d+\.\d*([ed][-+]?\d+)?(_[a-z]\w+)?', Number.Float), - (r'[+-]?\d+(\.\d*)?([ed][-+]?\d+)?(_[a-z]\w+)?', Number.Float), + (r'[+-]?\d+(\.\d*)?[ed][-+]?\d+(_[a-z]\w+)?', Number.Float), ], } |