Skip to content

Commit e31637d

Browse files
authored
Fixes Erroneous syntax highlighting on multiline interface blocks #202, (#203)
while also providing a more elegant solution to commit a4eaca4 for PR #165.
1 parent eeb0901 commit e31637d

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

syntaxes/fortran_free-form.tmLanguage.json

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,29 @@
1313
"F08"
1414
],
1515
"firstLineMatch": "(?i)-[*]- mode: fortran free -[*]-",
16+
"injections": {
17+
"source.fortran.free - ( string | comment )": {
18+
"patterns": [
19+
{
20+
"include": "#line-continuation-operator"
21+
}
22+
]
23+
},
24+
"string.quoted.double.fortran": {
25+
"patterns": [
26+
{
27+
"include": "#string-line-continuation-operator"
28+
}
29+
]
30+
},
31+
"string.quoted.single.fortran": {
32+
"patterns": [
33+
{
34+
"include": "#string-line-continuation-operator"
35+
}
36+
]
37+
}
38+
},
1639
"patterns": [
1740
{
1841
"include": "#preprocessor"
@@ -1559,6 +1582,7 @@
15591582
]
15601583
},
15611584
"control-statements": {
1585+
"comment": "Statements controlling the flow of the program",
15621586
"patterns": [
15631587
{
15641588
"include": "#assign-statement"
@@ -2179,9 +2203,6 @@
21792203
"include": "#invalid-word"
21802204
}
21812205
]
2182-
},
2183-
{
2184-
"include": "#line-continuation-operator"
21852206
}
21862207
]
21872208
},
@@ -4142,9 +4163,6 @@
41424163
{
41434164
"include": "#types"
41444165
},
4145-
{
4146-
"include": "#line-continuation-operator"
4147-
},
41484166
{
41494167
"comment": "Attribute list.",
41504168
"contentName": "meta.attribute-list.fortran",
@@ -4223,9 +4241,6 @@
42234241
"include": "#invalid-word"
42244242
}
42254243
]
4226-
},
4227-
{
4228-
"include": "#line-continuation-operator"
42294244
}
42304245
]
42314246
},
@@ -4926,9 +4941,6 @@
49264941
"patterns": [
49274942
{
49284943
"include": "#dummy-variable"
4929-
},
4930-
{
4931-
"include": "#line-continuation-operator"
49324944
}
49334945
]
49344946
},
@@ -5026,9 +5038,6 @@
50265038
},
50275039
{
50285040
"include": "#variable"
5029-
},
5030-
{
5031-
"include": "#line-continuation-operator"
50325041
}
50335042
]
50345043
},

0 commit comments

Comments
 (0)