File tree Expand file tree Collapse file tree 3 files changed +27
-3
lines changed
Expand file tree Collapse file tree 3 files changed +27
-3
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,27 @@ Set obj = New Object
3939' ^^^^ keyword.conditional.vba
4040 Next
4141' ^^^^ keyword.conditional.end.vba
42+
43+ Do While False
44+ ' ^^^^^^^^ keyword.conditional.vba
45+ Loop
46+ ' ^^^^ keyword.conditional.end.vba
47+
48+ Do
49+ ' ^^ keyword.conditional.vba
50+ Loop While False
51+ ' ^^^^^^^^^^ keyword.conditional.end.vba
52+
53+ Do
54+ ' ^^ keyword.conditional.vba
55+ Loop Until True
56+ ' ^^^^^^^^^^ keyword.conditional.end.vba
57+
58+ While False
59+ ' ^^^^^ keyword.conditional.vba
60+ Wend
61+ ' ^^^^ keyword.conditional.end.vba
62+
4263End With
4364' <-------- keyword.conditional.end.vba
4465
Original file line number Diff line number Diff line change @@ -5,3 +5,6 @@ Public strName As String
55
66Private strMsg As String
77' <------- keyword.other.visibility.vba
8+
9+ Friend Sub DoStuff ()
10+ ' <------ keyword.other.visibility.vba
Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ repository:
3030 - name : keyword.other.option.vba
3131 match : (?i)\bOption (Base [01]|Compare (Binary|Text)|Explicit|Private Module)\b
3232 - name : keyword.conditional.vba
33- match : (?i:\b(Case( Else)?|Else(If)?|For( Each)?|(I)?If|In|New|(Select )?Case|Then|To|Step|With)\b)
33+ match : (?i:\b(Do(( While)|( Until))?|While| Case( Else)?|Else(If)?|For( Each)?|(I)?If|In|New|(Select )?Case|Then|To|Step|With)\b)
3434 - name : keyword.conditional.end.vba
35- match : (?i:\bEnd( )?If|End (Select|With)|Next\b)
35+ match : (?i:\b(End( )?If|End (Select|With)|Next|Wend|Loop(( While)|( Until))?|Exit (For|Do|While)) \b)
3636 - name : keyword.control.vba
3737 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)
3838 - name : keyword.other.vba
3939 match : (?i:\b(Attribute|Call|End (Function|Property|Sub)|(Static )?(Const|Function|Property|Sub))\b)
4040 - name : keyword.other.visibility.vba
41- match : (?i:\b(Private|Public)\b)
41+ match : (?i:\b(Private|Public|Friend )\b)
4242 - name : constant.language.vba
4343 match : (?i)\b(Empty|False|Nothing|Null|True)\b
4444
You can’t perform that action at this time.
0 commit comments