Skip to content

Commit eeb0901

Browse files
authored
Fixed-form highlight: support \t at start of line (#191)
In fixed-form Fortran, \t at the start of a line is the same as 6 white-spaces, which is supported by this modification.
1 parent 85ecc5e commit eeb0901

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

syntaxes/fortran_fixed-form.tmLanguage.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
"end": "(?=\\n)"
5757
},
5858
"line-header": {
59-
"match": "^(?!\\s*[!#])(?:([ \\d]{5} )|( {5}.)|(.{1,5}))",
59+
"match": "^(?!\\s*[!#])(?:([ \\d]{5} )|( {5}.)|(\\t)|(.{1,5}))",
6060
"captures": {
6161
"1": {
6262
"name": "constant.numeric.fortran"
@@ -65,9 +65,12 @@
6565
"name": "keyword.line-continuation-operator.fortran"
6666
},
6767
"3": {
68+
"name": "source.fortran.free"
69+
},
70+
"4": {
6871
"name": "invalid.error.fortran"
6972
}
7073
}
7174
}
7275
}
73-
}
76+
}

0 commit comments

Comments
 (0)