We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a038fb commit 298b727Copy full SHA for 298b727
lexers/fortran_fixed.go
@@ -19,18 +19,18 @@ var FortranFixed = Register(MustNewLexer(
19
"root": {
20
{`[C*].*\n`, Comment, nil},
21
{`#.*\n`, CommentPreproc, nil},
22
- {`[\t ]*!.*\n`, Comment, nil},
+ {` {0,4}!.*\n`, Comment, nil},
23
{`(.{5})`, NameLabel, Push("cont-char")},
24
{`.*\n`, Using("Fortran"), nil},
25
},
26
"cont-char": {
27
- {` `, Text, Push("code")},
28
- {`0`, Comment, Push("code")},
+ {` `, TextWhitespace, Push("code")},
29
{`.`, GenericStrong, Push("code")},
30
31
"code": {
32
- {`(.{66})(.*)(\n)`, ByGroups(Using("Fortran"), Comment, Text), Push("root")},
33
- {`.*\n`, Using("Fortran"), Push("root")},
+ {`(.{66})(.*)(\n)`, ByGroups(Using("Fortran"), Comment, TextWhitespace), Push("root")},
+ {`(.*)(!.*)(\n)`, ByGroups(Using("Fortran"), Comment, TextWhitespace), Push("root")},
+ {`(.*)(\n)`, ByGroups(Using("Fortran"), TextWhitespace), Push("root")},
34
Default(Push("root")),
35
36
}
0 commit comments