Skip to content

Commit 71620bf

Browse files
committed
Fixes Modern Fortran 2: inconsistent syntax highlighting fortran-lang#181,
for simple case-select. Use https://github.com/dparkins/language-fortran as a guideline
1 parent 8a950a8 commit 71620bf

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
@@ -1303,18 +1303,16 @@
13031303
}
13041304
]
13051305
},
1306-
"select-case-construct":{
1306+
"select-case-construct": {
13071307
"comment": "Select case construct. Introduced in the Fortran 1990 standard.",
1308-
"begin": "(?i)\\b(select)\\s*(case)\\b",
1308+
"name": "meta.block.select.case.fortran",
1309+
"begin": "(?i)\\b(select\\s*case)\\b",
13091310
"beginCaptures": {
13101311
"1": {
1311-
"name": "keyword.control.select.fortran"
1312-
},
1313-
"2": {
1314-
"name": "keyword.control.case.fortran"
1312+
"name": "keyword.control.selectcase.fortran"
13151313
}
13161314
},
1317-
"end": "(?i)(?=\\b(end\\s*select)\\b)",
1315+
"end": "(?i)\\b(end\\s*select)\\b",
13181316
"endCaptures": {
13191317
"1": {
13201318
"name": "keyword.control.endselect.fortran"

0 commit comments

Comments
 (0)