Skip to content

Commit 3796d6e

Browse files
committed
Fixed issue causing Optional not to be recognised in arguments list
1 parent e09841a commit 3796d6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/syntaxes/vba.tmLanguage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ repository:
376376
- include: "#argsLiteral"
377377
repository:
378378
argsVariable:
379-
match: (?i),?\s*((?:Optional\s+)?(?:ByVal|ByRef)\s+)?([a-z][a-z0-9_]*)(?:\s+(as\s+[a-z][a-z0-9_]*))?(\s*=\s*[^,)]+)?
379+
match: (?i),?\s*((?:Optional\s+)?(?:(?:ByVal|ByRef)\s+)?)?([a-z][a-z0-9_]*)(?:\s+(as\s+[a-z][a-z0-9_]*))?(\s*=\s*[^,)]+)?
380380
captures:
381381
1: # Optional? ByVal|ByRef?
382382
name: storage.type.modifier.vba

0 commit comments

Comments
 (0)