File tree Expand file tree Collapse file tree 2 files changed +17
-5
lines changed
Expand file tree Collapse file tree 2 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 11' SYNTAX TEST "source.vba" "main syntax test"
22
3+ Attribute VB_Name = "SyntaxTest"
4+ ' ^^^^^^^^^ keyword.attribute
5+
36 Public Const FOO As Int = 1
47' ^^^^^^ storage.modifier.visibility
58
Original file line number Diff line number Diff line change 88 "patterns" : [
99 { "include" : " #comments" },
1010 { "include" : " #visibility" },
11- { "include" : " #option" }
11+ { "include" : " #option" },
12+ { "include" : " #keywords" }
1213 ],
1314 "repository" : {
1415 "comments" : {
1516 "name" : " comment.line" ,
1617 "begin" : " '" ,
1718 "end" : " $"
1819 },
19- "visibility" : {
20- "name" : " storage.modifier.visibility" ,
21- "match" : " \\ b(Public|Private)\\ b"
20+ "keywords" : {
21+ "patterns" : [
22+ {
23+ "name" : " keyword.attribute" ,
24+ "match" : " \\ bAttribute\\ b"
25+ }
26+ ]
2227 },
2328 "option" : {
2429 "name" : " storage.modifier.option" ,
25- "match" : " Option (Explicit|Private Module|Base|(Compare (Binary|Text)+))?"
30+ "match" : " \\ bOption (Explicit|Private Module|Base|(Compare (Binary|Text)+))?\\ b"
31+ },
32+ "visibility" : {
33+ "name" : " storage.modifier.visibility" ,
34+ "match" : " \\ b(Public|Private)\\ b"
2635 }
2736 }
2837}
You can’t perform that action at this time.
0 commit comments