Skip to content

Commit b850be8

Browse files
committed
Added array support for var decs
1 parent 1e0a2dc commit b850be8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

client/src/syntaxes/vba.tmLanguage.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ repository:
350350
repository:
351351
variableDeclaration:
352352
name: storage.var-declaration.vba
353-
match: "(?i)^\\s*(Dim|Public|Private)\\s+([a-z][a-z0-9_]*)(\\s+As\\s+[A-Z][A-Z0-9_]*)?"
353+
match: "(?i)^\\s*(Dim|Public|Private)\\s+([a-z][a-z0-9_]*)(\\(.*\\))?(\\s+As\\s+[A-Z][A-Z0-9_]*)?"
354354
captures:
355355
1:
356356
# Dim|Private
@@ -359,6 +359,10 @@ repository:
359359
# varName
360360
name: variable.other.readwrite.vba
361361
3:
362+
# Array bounds?
363+
patterns:
364+
- include: "#language"
365+
4:
362366
# As Type
363367
patterns:
364368
- include: "#types"

0 commit comments

Comments
 (0)