|
982 | 982 | "named-control-constructs": {
|
983 | 983 | "comment": "Introduced in the Fortran 1990 standard.",
|
984 | 984 | "contentName": "meta.named-construct.fortran.modern",
|
985 |
| - "begin": "(?ix)([a-z]\\w*)\\s*(:)(?=\\s*(?:associate|block(?!\\s*data)|critical|do|forall|if|select|where)\\b)", |
986 |
| - "end": "(?i)\\s*(?!\\b(?:associate|block(?!\\s*data)|critical|do|forall|if|select|where)\\b)\\b(?:\\b(\\1)\\b)?(?:\\s*([^\\s;!][^;!\\n]*?))?(?=\\s*[;!\\n])", |
| 985 | + "begin": "(?ix)([a-z]\\w*)\\s*(:)(?=\\s*(?:associate|block(?!\\s*data)|critical|do|forall|if|select\\s*case|select\\s*type|select\\s*rank|where)\\b)", |
| 986 | + "end": "(?i)\\s*(?!\\b(?:associate|block(?!\\s*data)|critical|do|forall|if|select\\s*case|select\\s*type|select\\s*rank|where)\\b)\\b(?:\\b(\\1)\\b)?(?:\\s*([^\\s;!][^;!\\n]*?))?(?=\\s*[;!\\n])", |
987 | 987 | "endCaptures": {
|
988 | 988 | "2": {
|
989 | 989 | "name": "invalid.error.fortran.modern"
|
|
1303 | 1303 | }
|
1304 | 1304 | ]
|
1305 | 1305 | },
|
1306 |
| - "select-case-construct":{ |
| 1306 | + "select-case-construct": { |
1307 | 1307 | "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", |
1309 | 1310 | "beginCaptures": {
|
1310 | 1311 | "1": {
|
1311 |
| - "name": "keyword.control.select.fortran" |
1312 |
| - }, |
1313 |
| - "2": { |
1314 |
| - "name": "keyword.control.case.fortran" |
| 1312 | + "name": "keyword.control.selectcase.fortran" |
1315 | 1313 | }
|
1316 | 1314 | },
|
1317 |
| - "end": "(?i)(?=\\b(end\\s*select)\\b)", |
| 1315 | + "end": "(?i)\\b(end\\s*select)\\b", |
1318 | 1316 | "endCaptures": {
|
1319 | 1317 | "1": {
|
1320 | 1318 | "name": "keyword.control.endselect.fortran"
|
|
1354 | 1352 | }
|
1355 | 1353 | ]
|
1356 | 1354 | },
|
1357 |
| - "select-type-construct":{ |
| 1355 | + "select-type-construct": { |
1358 | 1356 | "comment": "Select type construct. Introduced in the Fortran 2003 standard.",
|
1359 |
| - "begin": "(?i)\\b(select)\\s*(type)\\b", |
| 1357 | + "name": "meta.block.select.type.fortran", |
| 1358 | + "begin": "(?i)\\b(select\\s*type)\\b", |
1360 | 1359 | "beginCaptures": {
|
1361 | 1360 | "1": {
|
1362 |
| - "name": "keyword.control.select.fortran" |
1363 |
| - }, |
1364 |
| - "2": { |
1365 |
| - "name": "keyword.control.type.fortran" |
| 1361 | + "name": "keyword.control.selecttype.fortran" |
1366 | 1362 | }
|
1367 | 1363 | },
|
1368 |
| - "end": "(?i)(?=\\b(end\\s*select)\\b)", |
| 1364 | + "end": "(?i)\\b(end\\s*select)\\b", |
1369 | 1365 | "endCaptures": {
|
1370 | 1366 | "1": {
|
1371 | 1367 | "name": "keyword.control.endselect.fortran"
|
|
1376 | 1372 | "include": "#parentheses"
|
1377 | 1373 | },
|
1378 | 1374 | {
|
1379 |
| - "begin": "(?i)\\b(?:(class)|(type))", |
| 1375 | + "begin": "(?i)\\b(?:(class)|(type))\\b", |
1380 | 1376 | "beginCaptures": {
|
1381 | 1377 | "1": {
|
1382 | 1378 | "name": "keyword.control.class.fortran"
|
|
1396 | 1392 | }
|
1397 | 1393 | },
|
1398 | 1394 | {
|
1399 |
| - "match": "(?i)\\G\\s*(is)\\b", |
| 1395 | + "match": "(?i)\\G\\s*\\b(is)\\b", |
1400 | 1396 | "captures": {
|
1401 | 1397 | "1": {
|
1402 | 1398 | "name": "keyword.control.is.fortran"
|
|
1416 | 1412 | }
|
1417 | 1413 | ]
|
1418 | 1414 | },
|
1419 |
| - "select-rank-construct":{ |
| 1415 | + "select-rank-construct": { |
1420 | 1416 | "comment": "Select rank construct. Introduced in the Fortran 2008 standard.",
|
1421 |
| - "begin": "(?i)\\b(select)\\s*(rank)\\b", |
| 1417 | + "name": "meta.block.select.rank.fortran", |
| 1418 | + "begin": "(?i)\\b(select\\s*rank)\\b", |
1422 | 1419 | "beginCaptures": {
|
1423 | 1420 | "1": {
|
1424 |
| - "name": "keyword.control.select.fortran" |
1425 |
| - }, |
1426 |
| - "2": { |
1427 |
| - "name": "keyword.control.rank.fortran" |
| 1421 | + "name": "keyword.control.selectrank.fortran" |
1428 | 1422 | }
|
1429 | 1423 | },
|
1430 |
| - "end": "(?i)(?=\\b(end\\s*select)\\b)", |
| 1424 | + "end": "(?i)\\b(end\\s*select)\\b", |
1431 | 1425 | "endCaptures": {
|
1432 | 1426 | "1": {
|
1433 | 1427 | "name": "keyword.control.endselect.fortran"
|
|
0 commit comments