File tree Expand file tree Collapse file tree 1 file changed +30
-13
lines changed Expand file tree Collapse file tree 1 file changed +30
-13
lines changed Original file line number Diff line number Diff line change 1456
1456
},
1457
1457
"forall-construct" : {
1458
1458
"comment" : " Introduced in the Fortran 1995 standard." ,
1459
- "contentName" : " meta.block.forall.fortran" ,
1460
- "begin" : " (?i)\\ s*\\ b(forall)\\ b" ,
1461
- "beginCaptures" :{
1459
+ "begin" : " (?i)\\ b(forall)\\ b" ,
1460
+ "beginCaptures" : {
1462
1461
"1" : {
1463
1462
"name" : " keyword.control.forall.fortran"
1464
1463
}
1465
1464
},
1466
- "end" : " (?i)\\ s*\\ b(end\\ s*forall)\\ b" ,
1467
- "endCaptures" : {
1468
- "1" : {
1469
- "name" : " keyword.control.endforall.fortran"
1470
- }
1471
- },
1472
- "patterns" :[
1465
+ "end" : " (?<!\\ G)" ,
1466
+ "applyEndPatternLast" : 1 ,
1467
+ "patterns" : [
1473
1468
{
1474
1469
"comment" : " Loop control." ,
1475
1470
"name" : " meta.loop-control.fortran" ,
1476
1471
"begin" : " (?i)\\ G(?!\\ s*[;!\\ n])" ,
1477
- "end" : " (?=[; !\\ n] )" ,
1478
- "patterns" :[
1472
+ "end" : " (?< !\\ G )" ,
1473
+ "patterns" : [
1479
1474
{
1480
1475
"include" : " #parentheses"
1481
1476
},
1485
1480
]
1486
1481
},
1487
1482
{
1488
- "include" : " $base"
1483
+ "name" : " meta.block.forall.fortran" ,
1484
+ "begin" : " (?<=\\ ))(?=\\ s*[;!\\ n])" ,
1485
+ "end" : " (?i)\\ b(end\\ s*forall)\\ b" ,
1486
+ "endCaptures" : {
1487
+ "1" : {
1488
+ "name" : " keyword.control.endforall.fortran"
1489
+ }
1490
+ },
1491
+ "patterns" : [
1492
+ {
1493
+ "include" : " $base"
1494
+ }
1495
+ ]
1496
+ },
1497
+ {
1498
+ "name" : " meta.statement.control.forall.fortran" ,
1499
+ "begin" : " (?i)(?<=\\ ))(?!\\ s*[;!\\ n])" ,
1500
+ "end" : " \\ n" ,
1501
+ "patterns" : [
1502
+ {
1503
+ "include" : " $base"
1504
+ }
1505
+ ]
1489
1506
}
1490
1507
]
1491
1508
},
You can’t perform that action at this time.
0 commit comments