Skip to content

Commit 4910dd1

Browse files
committed
Fixes Modern Fortran 2: inconsistent syntax highlighting fortran-lang#181,
for rank-select constructs.
1 parent cf39ea3 commit 4910dd1

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

syntaxes/fortran_free-form.tmLanguage.json

+5-7
Original file line numberDiff line numberDiff line change
@@ -1412,18 +1412,16 @@
14121412
}
14131413
]
14141414
},
1415-
"select-rank-construct":{
1415+
"select-rank-construct": {
14161416
"comment": "Select rank construct. Introduced in the Fortran 2008 standard.",
1417-
"begin": "(?i)\\b(select)\\s*(rank)\\b",
1417+
"name": "meta.block.select.rank.fortran",
1418+
"begin": "(?i)\\b(select\\s*rank)\\b",
14181419
"beginCaptures": {
14191420
"1": {
1420-
"name": "keyword.control.select.fortran"
1421-
},
1422-
"2": {
1423-
"name": "keyword.control.rank.fortran"
1421+
"name": "keyword.control.selectrank.fortran"
14241422
}
14251423
},
1426-
"end": "(?i)(?=\\b(end\\s*select)\\b)",
1424+
"end": "(?i)\\b(end\\s*select)\\b",
14271425
"endCaptures": {
14281426
"1": {
14291427
"name": "keyword.control.endselect.fortran"

0 commit comments

Comments
 (0)