Skip to content

Commit 7bb9ca7

Browse files
committed
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 9ffaaaf commit 7bb9ca7

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"
@@ -1553,6 +1576,7 @@
15531576
]
15541577
},
15551578
"control-statements": {
1579+
"comment": "Statements controlling the flow of the program",
15561580
"patterns": [
15571581
{
15581582
"include": "#assign-statement"
@@ -2173,9 +2197,6 @@
21732197
"include": "#invalid-word"
21742198
}
21752199
]
2176-
},
2177-
{
2178-
"include": "#line-continuation-operator"
21792200
}
21802201
]
21812202
},
@@ -4136,9 +4157,6 @@
41364157
{
41374158
"include": "#types"
41384159
},
4139-
{
4140-
"include": "#line-continuation-operator"
4141-
},
41424160
{
41434161
"comment": "Attribute list.",
41444162
"contentName": "meta.attribute-list.fortran",
@@ -4217,9 +4235,6 @@
42174235
"include": "#invalid-word"
42184236
}
42194237
]
4220-
},
4221-
{
4222-
"include": "#line-continuation-operator"
42234238
}
42244239
]
42254240
},
@@ -4920,9 +4935,6 @@
49204935
"patterns": [
49214936
{
49224937
"include": "#dummy-variable"
4923-
},
4924-
{
4925-
"include": "#line-continuation-operator"
49264938
}
49274939
]
49284940
},
@@ -5020,9 +5032,6 @@
50205032
},
50215033
{
50225034
"include": "#variable"
5023-
},
5024-
{
5025-
"include": "#line-continuation-operator"
50265035
}
50275036
]
50285037
},

0 commit comments

Comments
 (0)