Skip to content

Commit 7a315d3

Browse files
committed
restore function name highlight after Call
- doesn't work for functions from other modules for now
1 parent 7b02eb0 commit 7a315d3

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

syntaxes/tests/procedure.bas

+4
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ Function withParam(Optional p1 As MyType)
3636
' ^^^^^^^^ keyword.control.vba
3737
End Function
3838
' <------------ keyword.other.vba
39+
40+
Call mSub()
41+
' <---- keyword.other.vba
42+
' ^^^^ entity.name.function.vba

syntaxes/vba.tmGrammar.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ repository:
4040

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

4545
numbers:
4646
patterns:

0 commit comments

Comments
 (0)