|
1236 | 1236 | "patterns": [
|
1237 | 1237 | {
|
1238 | 1238 | "comment": "rest of else line",
|
1239 |
| - "begin": "(?!(\\s*!)|(\\s*\\n))", |
| 1239 | + "begin": "(?!(\\s*(;|!|\\n)))", |
1240 | 1240 | "end": "(?=[;!\\n])",
|
1241 | 1241 | "patterns": [
|
1242 | 1242 | {
|
|
1278 | 1278 | "patterns": [
|
1279 | 1279 | {
|
1280 | 1280 | "name": "meta.block.select.fortran",
|
1281 |
| - "begin": "(?i)\\b(select\\s*case|selectcase)\\b", |
| 1281 | + "begin": "(?i)\\b(select)", |
1282 | 1282 | "beginCaptures": {
|
1283 | 1283 | "1": {
|
1284 | 1284 | "name": "keyword.control.select.fortran"
|
|
1293 | 1293 | "patterns": [
|
1294 | 1294 | {
|
1295 | 1295 | "comment": "Select case construct. Introduced in the Fortran 1990 standard.",
|
1296 |
| - "begin": "(?i)^\\s*\\b(case)\\b", |
| 1296 | + "begin": "(?i)\\s*(case)\\b", |
1297 | 1297 | "beginCaptures": {
|
1298 | 1298 | "1": {
|
1299 | 1299 | "name": "keyword.control.case.fortran"
|
|
1336 | 1336 | },
|
1337 | 1337 | {
|
1338 | 1338 | "comment": "Select type construct. Introduced in the Fortran 2003 standard.",
|
1339 |
| - "begin": "(?i)\\G\\s*\\b(type)\\b", |
| 1339 | + "begin": "(?i)\\s*(type)\\b", |
1340 | 1340 | "beginCaptures": {
|
1341 | 1341 | "1": {
|
1342 |
| - "name": "keyword.control.case.fortran" |
| 1342 | + "name": "keyword.control.type.fortran" |
1343 | 1343 | }
|
1344 | 1344 | },
|
1345 | 1345 | "end": "(?i)(?=\\b(end\\s*select)\\b)",
|
|
1348 | 1348 | "include": "#parentheses"
|
1349 | 1349 | },
|
1350 | 1350 | {
|
1351 |
| - "begin": "(?i)\\b(?:(class)|(type))\\b", |
| 1351 | + "begin": "(?i)\\b(?:(class)|(type))", |
1352 | 1352 | "beginCaptures": {
|
1353 | 1353 | "1": {
|
1354 | 1354 | "name": "keyword.control.class.fortran"
|
|
1368 | 1368 | }
|
1369 | 1369 | },
|
1370 | 1370 | {
|
1371 |
| - "match": "(?i)\\G\\s*\\b(is)\\b", |
| 1371 | + "match": "(?i)\\G\\s*(is)\\b", |
1372 | 1372 | "captures": {
|
1373 | 1373 | "1": {
|
1374 | 1374 | "name": "keyword.control.is.fortran"
|
|
4064 | 4064 | },
|
4065 | 4065 | "type-specification-statements": {
|
4066 | 4066 | "name": "meta.specification.type.fortran",
|
4067 |
| - "begin": "(?ix)(?=\\b(?:character|class|complex|double\\s*precision|double\\s*complex|integer|logical|real|type)\\b(?![^'\";!\\n]*\\bfunction\\b))", |
| 4067 | + "begin": "(?ix)(?=\\b(?:character|class|complex|double\\s*precision|double\\s*complex|integer|logical|real|type|dimension)\\b(?![^'\";!\\n]*\\bfunction\\b))", |
4068 | 4068 | "end": "(?=[\\);!\\n])",
|
4069 | 4069 | "patterns": [
|
4070 | 4070 | {
|
|
4670 | 4670 | ]
|
4671 | 4671 | },
|
4672 | 4672 | {
|
4673 |
| - "match": "(?ix)\\b(?:(complex)|(double\\s*precision)|(double\\s*complex)|(integer)|(real))\\b(?:\\s*(\\*)\\s*(\\d*))?", |
| 4673 | + "match": "(?ix)\\b(?:(complex)|(double\\s*precision)|(double\\s*complex)|(integer)|(real)|(dimension))\\b(?:\\s*(\\*)\\s*(\\d*))?", |
4674 | 4674 | "captures": {
|
4675 | 4675 | "1": {
|
4676 | 4676 | "name": "storage.type.complex.fortran"
|
|
4688 | 4688 | "name": "storage.type.real.fortran"
|
4689 | 4689 | },
|
4690 | 4690 | "6": {
|
| 4691 | + "name": "storage.type.dimension.fortran" |
| 4692 | + }, |
| 4693 | + "7": { |
4691 | 4694 | "name": "keyword.operator.multiplication.fortran"
|
4692 | 4695 | },
|
4693 |
| - "7": { |
| 4696 | + "8": { |
4694 | 4697 | "name": "constant.numeric.fortran"
|
4695 | 4698 | }
|
4696 | 4699 | }
|
|
0 commit comments