From 780fd3f83cfb695b0429ac523119004617c4df87 Mon Sep 17 00:00:00 2001 From: Martin Leduc <31558169+DecimalTurn@users.noreply.github.com> Date: Wed, 21 Aug 2024 06:09:56 -0400 Subject: [PATCH] syntax: add `Global` keyword (#116) --- syntaxes/tests/vba/visibilityKeywords.bas | 3 +++ syntaxes/vba.yaml-tmlanguage | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/syntaxes/tests/vba/visibilityKeywords.bas b/syntaxes/tests/vba/visibilityKeywords.bas index d76e573..48c42db 100644 --- a/syntaxes/tests/vba/visibilityKeywords.bas +++ b/syntaxes/tests/vba/visibilityKeywords.bas @@ -3,6 +3,9 @@ Public strName As String ' <------ keyword.other.visibility.vba +Global strName As String +' <------ keyword.other.visibility.vba + Private strMsg As String ' <------- keyword.other.visibility.vba diff --git a/syntaxes/vba.yaml-tmlanguage b/syntaxes/vba.yaml-tmlanguage index fa2bc24..f016ebc 100644 --- a/syntaxes/vba.yaml-tmlanguage +++ b/syntaxes/vba.yaml-tmlanguage @@ -59,7 +59,7 @@ repository: - name: keyword.other.option.vba match: (?i)\bOption (Base [01]|Compare (Binary|Text)|Explicit|Private Module)\b - name: keyword.other.visibility.vba - match: (?i:\b(Private|Public|Friend)\b) + match: (?i:\b(Private|Public|Global|Friend)\b) - name: constant.language.vba match: (?i)\b(Empty|False|Nothing|Null|True)\b