diff options
author | Reuben Thomas <rrt@sc3d.org> | 2016-08-24 11:50:28 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2016-08-24 11:50:28 +0100 |
commit | f5bdf344fe505c87cc21d0aeb21872d02d48fdbb (patch) | |
tree | b6c05ddc24c128d23503cbb2794f65102849951b | |
parent | 4564fe0139b6fb5cac8f0c6faf5c977c6accf739 (diff) | |
parent | 56e75b33d66738b072f9f5525f3af4a8ba863d8b (diff) | |
download | pygments-f5bdf344fe505c87cc21d0aeb21872d02d48fdbb.tar.gz |
Merged birkenfeld/pygments-main into default
-rw-r--r-- | pygments/lexers/fortran.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/fortran.py b/pygments/lexers/fortran.py index e2f95b11..6cc8f2c8 100644 --- a/pygments/lexers/fortran.py +++ b/pygments/lexers/fortran.py @@ -156,8 +156,8 @@ class FortranLexer(RegexLexer): 'nums': [ (r'\d+(?![.e])(_[a-z]\w+)?', Number.Integer), - (r'[+-]?\d*\.\d+(e[-+]?\d+)?(_[a-z]\w+)?', Number.Float), - (r'[+-]?\d+\.\d*(e[-+]?\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), ], } |