summaryrefslogtreecommitdiff
path: root/pygments/lexers/fortran.py
diff options
context:
space:
mode:
Diffstat (limited to 'pygments/lexers/fortran.py')
-rw-r--r--pygments/lexers/fortran.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/pygments/lexers/fortran.py b/pygments/lexers/fortran.py
index 4c22139d..e2f95b11 100644
--- a/pygments/lexers/fortran.py
+++ b/pygments/lexers/fortran.py
@@ -11,7 +11,7 @@
import re
-from pygments.lexer import RegexLexer, bygroups, include, words, using
+from pygments.lexer import RegexLexer, bygroups, include, words, using, default
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
Number, Punctuation, Generic
@@ -191,16 +191,15 @@ class FortranFixedLexer(RegexLexer):
(r'(.{5})', Name.Label, 'cont-char'),
(r'.*\n', using(FortranLexer)),
],
-
'cont-char': [
(' ', Text, 'code'),
('0', Comment, 'code'),
- ('.', Generic.Strong, 'code')
+ ('.', Generic.Strong, 'code'),
],
-
'code': [
(r'(.{66})(.*)(\n)',
bygroups(_lex_fortran, Comment, Text), 'root'),
(r'(.*)(\n)', bygroups(_lex_fortran, Text), 'root'),
- (r'', Text, 'root')]
+ default('root'),
+ ]
}