summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2016-08-24 11:50:28 +0100
committerReuben Thomas <rrt@sc3d.org>2016-08-24 11:50:28 +0100
commitf5bdf344fe505c87cc21d0aeb21872d02d48fdbb (patch)
treeb6c05ddc24c128d23503cbb2794f65102849951b
parent4564fe0139b6fb5cac8f0c6faf5c977c6accf739 (diff)
parent56e75b33d66738b072f9f5525f3af4a8ba863d8b (diff)
downloadpygments-f5bdf344fe505c87cc21d0aeb21872d02d48fdbb.tar.gz
Merged birkenfeld/pygments-main into default
-rw-r--r--pygments/lexers/fortran.py4
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),
],
}