diff --git a/syntaxes/tests/vba/procedure.bas b/syntaxes/tests/vba/procedure.bas index 13afd40..4a6077d 100644 --- a/syntaxes/tests/vba/procedure.bas +++ b/syntaxes/tests/vba/procedure.bas @@ -50,3 +50,7 @@ End Function Call mSub() ' <---- keyword.other.vba ' ^^^^ entity.name.function.vba + +Call SubWithNoArgs +' <---- keyword.other.vba +' ^^^^^^^^^^^^^ entity.name.function.vba diff --git a/syntaxes/vba.yaml-tmlanguage b/syntaxes/vba.yaml-tmlanguage index 6dab222..331ca78 100644 --- a/syntaxes/vba.yaml-tmlanguage +++ b/syntaxes/vba.yaml-tmlanguage @@ -47,7 +47,7 @@ repository: patterns: - name: entity.name.function.vba match: (?i:\b([a-zA-Z][a-zA-Z0-9_]*)\b) - end: \( + end: \(|(?=\n) keywords: patterns: