Skip to content

Commit

Permalink
syntax: add Global keyword (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
DecimalTurn authored Aug 21, 2024
1 parent 810915a commit 780fd3f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions syntaxes/tests/vba/visibilityKeywords.bas
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion syntaxes/vba.yaml-tmlanguage
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 780fd3f

Please sign in to comment.