diff options
author | Anteru <bitbucket@ca.sh13.net> | 2018-12-13 19:00:34 +0000 |
---|---|---|
committer | Anteru <bitbucket@ca.sh13.net> | 2018-12-13 19:00:34 +0000 |
commit | 65d6afef40bcef201356f7eaf8bddfc5bcd82743 (patch) | |
tree | e657ecf68f83556d2d5b4e8d5965b34ed21e4125 | |
parent | 9ff8604acaf3e3713a9dab75d4d66e6b5a0fcac4 (diff) | |
parent | c5629b93b8128c9a4925c1d118b6cb9b1d468f7a (diff) | |
download | pygments-65d6afef40bcef201356f7eaf8bddfc5bcd82743.tar.gz |
Merged in marshallward/pygments-main (pull request #747)
Fortran E-notation without decimals (1e10)
-rw-r--r-- | pygments/lexers/fortran.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pygments/lexers/fortran.py b/pygments/lexers/fortran.py index 1a611c9d..5165bac0 100644 --- a/pygments/lexers/fortran.py +++ b/pygments/lexers/fortran.py @@ -158,6 +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), ], } |