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 14561456 },
14571457 "forall-construct" : {
14581458 "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" : {
14621461 "1" : {
14631462 "name" : " keyword.control.forall.fortran"
14641463 }
14651464 },
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" : [
14731468 {
14741469 "comment" : " Loop control." ,
14751470 "name" : " meta.loop-control.fortran" ,
14761471 "begin" : " (?i)\\ G(?!\\ s*[;!\\ n])" ,
1477- "end" : " (?=[; !\\ n] )" ,
1478- "patterns" :[
1472+ "end" : " (?< !\\ G )" ,
1473+ "patterns" : [
14791474 {
14801475 "include" : " #parentheses"
14811476 },
14851480 ]
14861481 },
14871482 {
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+ ]
14891506 }
14901507 ]
14911508 },
You can’t perform that action at this time.
0 commit comments