File tree Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Expand file tree Collapse file tree 1 file changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -816,26 +816,26 @@ repository:
816816 - include : " #variableDeclaration"
817817 repository :
818818 variableDeclaration :
819- name : storage.var-declaration.vba
820- match : (?i)^\s*(Dim|Public|Private|Global)\s+([a-z][a-z0-9_]*)([&%#!@$^])?(\(.*\))?(\s+As(?:\s+New)?\s+[A-Z][A-Z0-9_]*)?
821- captures :
819+ name : meta.variable.declaration.vba
820+ begin : (?i)(public|private|dim\s+)(?!const)
821+ end : (?=[':\n]|Rem)
822+ beginCaptures :
822823 1 :
823- # Dim|Private
824- name : storage.type.vba
825- 2 :
826- # varName
827- name : variable.other.readwrite.vba
828- 3 :
829- # Type hint?
830- name : support.type.primitive.vba
831- 4 :
832- # Array bounds?
833- patterns :
834- - include : " #language"
835- 5 :
836- # As Type
837- patterns :
838- - include : " #types"
824+ name : storage.modifier.declare-variable.vba
825+ patterns :
826+ - include : " #lineContinuation"
827+ - include : " #separator"
828+ - match : (?i)([a-z][a-z0-9_]*)([&%#!@$^])?(?:\s+(as)\s+([a-z][a-z0-9_.]*))?
829+ captures :
830+ 1 :
831+ name : variable.other.read-write.vba
832+ 2 :
833+ name : storage.type.$2.vba
834+ 3 :
835+ name : keyword.control.as.vba
836+ 4 :
837+ name : support.type.$4.vba
838+
839839 constDeclaration :
840840 name : storage.const-declaration.vba
841841 match : (?i)^\s*((?:(?:Public|Private)\s+)?Const)\s+([a-z][a-z0-9_]*)([&%#!@$^])?(\s+As\s+[a-z][a-z0-9_]*)?(.*)
You can’t perform that action at this time.
0 commit comments