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 1508
1508
},
1509
1509
"forall-construct" : {
1510
1510
"comment" : " Introduced in the Fortran 1995 standard." ,
1511
- "contentName" : " meta.block.forall.fortran" ,
1512
- "begin" : " (?i)\\ s*\\ b(forall)\\ b" ,
1513
- "beginCaptures" :{
1511
+ "begin" : " (?i)\\ b(forall)\\ b" ,
1512
+ "beginCaptures" : {
1514
1513
"1" : {
1515
1514
"name" : " keyword.control.forall.fortran"
1516
1515
}
1517
1516
},
1518
- "end" : " (?i)\\ s*\\ b(end\\ s*forall)\\ b" ,
1519
- "endCaptures" : {
1520
- "1" : {
1521
- "name" : " keyword.control.endforall.fortran"
1522
- }
1523
- },
1524
- "patterns" :[
1517
+ "end" : " (?<!\\ G)" ,
1518
+ "applyEndPatternLast" : 1 ,
1519
+ "patterns" : [
1525
1520
{
1526
1521
"comment" : " Loop control." ,
1527
1522
"name" : " meta.loop-control.fortran" ,
1528
1523
"begin" : " (?i)\\ G(?!\\ s*[;!\\ n])" ,
1529
- "end" : " (?=[; !\\ n] )" ,
1530
- "patterns" :[
1524
+ "end" : " (?< !\\ G )" ,
1525
+ "patterns" : [
1531
1526
{
1532
1527
"include" : " #parentheses"
1533
1528
},
1537
1532
]
1538
1533
},
1539
1534
{
1540
- "include" : " $base"
1535
+ "name" : " meta.block.forall.fortran" ,
1536
+ "begin" : " (?<=\\ ))(?=\\ s*[;!\\ n])" ,
1537
+ "end" : " (?i)\\ b(end\\ s*forall)\\ b" ,
1538
+ "endCaptures" : {
1539
+ "1" : {
1540
+ "name" : " keyword.control.endforall.fortran"
1541
+ }
1542
+ },
1543
+ "patterns" : [
1544
+ {
1545
+ "include" : " $base"
1546
+ }
1547
+ ]
1548
+ },
1549
+ {
1550
+ "name" : " meta.statement.control.forall.fortran" ,
1551
+ "begin" : " (?i)(?<=\\ ))(?!\\ s*[;!\\ n])" ,
1552
+ "end" : " \\ n" ,
1553
+ "patterns" : [
1554
+ {
1555
+ "include" : " $base"
1556
+ }
1557
+ ]
1541
1558
}
1542
1559
]
1543
1560
},
You can’t perform that action at this time.
0 commit comments