Skip to content

Commit c13ab0e

Browse files
Fix lookbehinds (for Linguist compatibility) (#80)
--------- Co-authored-by: Lukas Neubert <[email protected]>
1 parent 5dab85c commit c13ab0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntaxes/vba.tmGrammar.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ repository:
4545

4646
functions:
4747
name: entity.name.function.vba
48-
match: (?i:\b(?<=(Call|Function|Sub)\s)[a-zA-Z][a-zA-Z0-9_]*\b)(?=\(\)?)
48+
match: (?i:\b(?:(?<=Call )|(?<=Function )|(?<=Sub ))[a-zA-Z][a-zA-Z0-9_]*\b)(?=\(\)?)
4949

5050
numbers:
5151
patterns:
@@ -72,7 +72,7 @@ repository:
7272
patterns:
7373
- name: support.type.builtin.vba
7474
match: (?i)\b(Any|Byte|Boolean|Currency|Collection|Date|Double|Integer|Long(Long|Ptr)?|Object|Single|String|Variant)\b
75-
- match: (?i)(?<=\s+As\s+)([a-zA-Z]+)
75+
- match: (?i)(?<= As )([a-zA-Z]+)
7676
captures:
7777
1:
7878
name: support.type

0 commit comments

Comments
 (0)