summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2014-11-06 09:45:00 +0100
committerGeorg Brandl <georg@python.org>2014-11-06 09:45:00 +0100
commit5d171694728c7881f4c15cd6a1c2e6862d374ea4 (patch)
treed450bc32a3bd49c95ebc1d5ea683f9605101db04
parentcaf1948c474e6e8a497df73368fe99e24247ed59 (diff)
downloadpygments-5d171694728c7881f4c15cd6a1c2e6862d374ea4.tar.gz
FORTRAN: fix previous commit
-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 ae432b88..8cb620e4 100644
--- a/pygments/lexers/fortran.py
+++ b/pygments/lexers/fortran.py
@@ -28,7 +28,7 @@ class FortranLexer(RegexLexer):
aliases = ['fortran']
filenames = ['*.f', '*.f90', '*.F', '*.F90']
mimetypes = ['text/x-fortran']
- flags = re.IGNORECASE
+ flags = re.IGNORECASE | re.MULTILINE
# Data Types: INTEGER, REAL, COMPLEX, LOGICAL, CHARACTER and DOUBLE PRECISION
# Operators: **, *, +, -, /, <, >, <=, >=, ==, /=
@@ -43,7 +43,7 @@ class FortranLexer(RegexLexer):
(r'!.*\n', Comment),
include('strings'),
include('core'),
- # (r'[a-z]\w*', Name.Variable), # too broad
+ (r'[a-z]\w*', Name),
include('nums'),
(r'[\s]+', Text),
],