Skip to content

Commit f96360c

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

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

syntaxes/fortran_free-form.tmLanguage.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,18 +1389,16 @@
13891389
}
13901390
]
13911391
},
1392-
"select-rank-construct":{
1392+
"select-rank-construct": {
13931393
"comment": "Select rank construct. Introduced in the Fortran 2008 standard.",
1394-
"begin": "(?i)\\b(select)\\s*(rank)\\b",
1394+
"name": "meta.block.select.rank.fortran",
1395+
"begin": "(?i)\\b(select\\s*rank)\\b",
13951396
"beginCaptures": {
13961397
"1": {
1397-
"name": "keyword.control.select.fortran"
1398-
},
1399-
"2": {
1400-
"name": "keyword.control.rank.fortran"
1398+
"name": "keyword.control.selectrank.fortran"
14011399
}
14021400
},
1403-
"end": "(?i)(?=\\b(end\\s*select)\\b)",
1401+
"end": "(?i)\\b(end\\s*select)\\b",
14041402
"endCaptures": {
14051403
"1": {
14061404
"name": "keyword.control.endselect.fortran"

0 commit comments

Comments
 (0)