File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed
Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change 458458 }
459459 ]
460460 },
461+ {
462+ "include" : " #constants"
463+ },
461464 {
462465 "include" : " #scope-resolution"
463466 },
707710 }
708711 ]
709712 },
710- {
711- "include" : " #constants"
712- },
713713 {
714714 "include" : " #punctuation-comma"
715715 }
825825 "name" : " constant.language.zephir"
826826 },
827827 {
828- "match" : " \\ b[_A-Z][_A-Z0-9]*\\ b" ,
829- "name" : " variable.other.constant.zephir"
828+ "match" : " (?!\\ |\\ $|->)(?:::)?\\ s*\\ b([_A-Z][_A-Z0-9]*)\\ b(?=\\ s|;|$)" ,
829+ "captures" :{
830+ "1" : {
831+ "name" : " constant.language.zephir"
832+ }
833+ }
834+ },
835+ {
836+ "match" : " (?!\\ |\\ $|->)(const)\\ s*\\ b([_A-Z][_A-Z0-9]*)\\ b(?=\\ s|;|=|$)" ,
837+ "captures" :{
838+ "1" : {
839+ "name" : " storage.modifier.zephir"
840+ },
841+ "2" : {
842+ "name" : " constant.language.zephir"
843+ }
844+ }
830845 }
831846 ]
832847 },
You can’t perform that action at this time.
0 commit comments