Skip to content

Commit f9d2abe

Browse files
Merge pull request #157 from andrewbest/master
Select rank
2 parents 6bf3b7d + b0e0400 commit f9d2abe

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

syntaxes/fortran_free-form.tmLanguage.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1334,6 +1334,49 @@
13341334
}
13351335
]
13361336
},
1337+
{
1338+
"comment": "Select rank construct. Introduced in the Fortran 2018 standard.",
1339+
"begin": "(?i)\\s*(rank)\\b",
1340+
"beginCaptures": {
1341+
"1": {
1342+
"name": "keyword.control.rank.fortran"
1343+
}
1344+
},
1345+
"end": "(?i)(?=\\b(end\\s*select)\\b)",
1346+
"patterns": [
1347+
{
1348+
"include": "#parentheses"
1349+
},
1350+
{
1351+
"begin": "(?i)\\b(rank)\\b",
1352+
"beginCaptures": {
1353+
"1": {
1354+
"name": "keyword.control.rank.fortran"
1355+
}
1356+
},
1357+
"end": "(?i)(?=[;!\\n])",
1358+
"patterns": [
1359+
{
1360+
"match": "(?i)\\G\\s*\\b(default)\\b",
1361+
"captures": {
1362+
"1": {
1363+
"name": "keyword.control.default.fortran"
1364+
}
1365+
}
1366+
},
1367+
{
1368+
"include": "#parentheses"
1369+
},
1370+
{
1371+
"include": "#invalid-word"
1372+
}
1373+
]
1374+
},
1375+
{
1376+
"include": "$base"
1377+
}
1378+
]
1379+
},
13371380
{
13381381
"comment": "Select type construct. Introduced in the Fortran 2003 standard.",
13391382
"begin": "(?i)\\s*(type)\\b",

0 commit comments

Comments
 (0)