File tree Expand file tree Collapse file tree 4 files changed +21
-10
lines changed
Expand file tree Collapse file tree 4 files changed +21
-10
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Attribute VB_Name = "SyntaxTest"
77' ^^^^^^^^^^^^^^ comment.line.quote
88
99Public Const FOO As Integer = 1
10- ' <------ keyword.other.vba
10+ ' ^^^^^ keyword.other.vba
1111' ^^ keyword.control.vba
1212
1313Dim obj As Variant
Original file line number Diff line number Diff line change 11' SYNTAX TEST "source.vba" "Sub, Function and anything related"
22
3- Private Sub doStuff (ByRef x As String )
4- ' ^^^^^^^^^^^ keyword.other.vba
5- ' ^^^^^^^ entity.name.function.vba
6- ' ^^^^^ keyword.control.vba
3+ Private Sub doStuff (ByRef x As String )
4+ ' <------- keyword.other.visibility.vba
5+ ' ^^^ keyword.other.vba
6+ ' ^^^^^^^ entity.name.function.vba
7+ ' ^^^^^ keyword.control.vba
78
89End Sub
910' <------- keyword.other.vba
1011
11- Public Function foo () As Boolean
12- ' ^^^^^^^^^^^^^^^ keyword.other.vba
13- ' ^^^ entity.name.function.vba
14- ' ^^ keyword.control.vba
12+ Public Function foo () As Boolean
13+ ' <------ keyword.other.visibility.vba
14+ ' ^^^^^^^^ keyword.other.vba
15+ ' ^^^ entity.name.function.vba
16+ ' ^^ keyword.control.vba
1517
1618 Function foo () As MyType
1719' ^^^^^^^^ keyword.other.vba
Original file line number Diff line number Diff line change 1+ ' SYNTAX TEST "source.vba" "module level variable declaration"
2+
3+ Public strName As String
4+ ' <------ keyword.other.visibility.vba
5+
6+ Private strMsg As String
7+ ' <------- keyword.other.visibility.vba
Original file line number Diff line number Diff line change @@ -33,7 +33,9 @@ repository:
3333 - name : keyword.control.vba
3434 match : (?i:\b((?<= )E(nd|xit)|As|And|By(Ref|Val)|Goto|Is|Like|Mod|Not|On Error|Optional|Or|Resume Next|Stop|Xor)\b)
3535 - name : keyword.other.vba
36- match : (?i:\b(Attribute|Call|End (Function|Property|Sub)|((Private|Public|Static) )?(Const|Function|Property|Sub))\b)
36+ match : (?i:\b(Attribute|Call|End (Function|Property|Sub)|(Static )?(Const|Function|Property|Sub))\b)
37+ - name : keyword.other.visibility.vba
38+ match : (?i:\b(Private|Public)\b)
3739 - name : constant.language.vba
3840 match : (?i)\b(Empty|False|Nothing|Null|True)\b
3941
You can’t perform that action at this time.
0 commit comments