Skip to content

Commit cf39ea3

Browse files
committed
Fixes Modern Fortran 2: inconsistent syntax highlighting #181,
for type-select constructs.
1 parent 71620bf commit cf39ea3

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

syntaxes/fortran_free-form.tmLanguage.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1352,18 +1352,16 @@
13521352
}
13531353
]
13541354
},
1355-
"select-type-construct":{
1355+
"select-type-construct": {
13561356
"comment": "Select type construct. Introduced in the Fortran 2003 standard.",
1357-
"begin": "(?i)\\b(select)\\s*(type)\\b",
1357+
"name": "meta.block.select.type.fortran",
1358+
"begin": "(?i)\\b(select\\s*type)\\b",
13581359
"beginCaptures": {
13591360
"1": {
1360-
"name": "keyword.control.select.fortran"
1361-
},
1362-
"2": {
1363-
"name": "keyword.control.type.fortran"
1361+
"name": "keyword.control.selecttype.fortran"
13641362
}
13651363
},
1366-
"end": "(?i)(?=\\b(end\\s*select)\\b)",
1364+
"end": "(?i)\\b(end\\s*select)\\b",
13671365
"endCaptures": {
13681366
"1": {
13691367
"name": "keyword.control.endselect.fortran"
@@ -1374,7 +1372,7 @@
13741372
"include": "#parentheses"
13751373
},
13761374
{
1377-
"begin": "(?i)\\b(?:(class)|(type))",
1375+
"begin": "(?i)\\b(?:(class)|(type))\\b",
13781376
"beginCaptures": {
13791377
"1": {
13801378
"name": "keyword.control.class.fortran"
@@ -1394,7 +1392,7 @@
13941392
}
13951393
},
13961394
{
1397-
"match": "(?i)\\G\\s*(is)\\b",
1395+
"match": "(?i)\\G\\s*\\b(is)\\b",
13981396
"captures": {
13991397
"1": {
14001398
"name": "keyword.control.is.fortran"

0 commit comments

Comments
 (0)