Skip to content

Commit 93d1791

Browse files
committed
highlight static in ariable declarations
1 parent 61948bc commit 93d1791

File tree

5 files changed

+20
-5
lines changed

5 files changed

+20
-5
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
# Changelog
2+
## 0.10.0
3+
_unreleased_
4+
5+
**Fixes**
6+
- Highlight `Static` in variable declarations
7+
8+
29
## 0.9.0
310
_07 June 2023_
411

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "VBA",
44
"description": "Visual Basic for Applications and WinWrap Basic support for VS Code.",
55
"icon": "images/icon_256x256.png",
6-
"version": "0.9.0",
6+
"version": "0.10.0-dev",
77
"license": "MIT",
88
"repository": {
99
"type": "git",
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
' SYNTAX TEST "source.vba" "storage modifiers test"
2+
3+
Static 200 As Integer
4+
' <------ storage.modifier.vba
5+
6+
Static Function MyFunction()
7+
' <------ storage.modifier.vba
8+
End Function

syntaxes/vba.tmGrammar.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ repository:
4646
- name: keyword.control.vba
4747
match: (?i:(\b(Exit (Function|Property|Sub)|As|And|By(Ref|Val)|Goto|Is|Like|Mod|Not|On Error|Optional|Or|Resume Next|Stop|Xor|Eqv|Imp|TypeOf|AddressOf)\b)|(\b(End)\b(?=\n)))
4848
- name: keyword.other.vba
49-
match: (?i:\b(Attribute|Call|End (Function|Property|Sub|Type|Enum)|(Static )?(Const|Function|Property|Sub|Type|Enum)|Declare|PtrSafe|WithEvents|Event|RaiseEvent)\b)
49+
match: (?i:\b(Attribute|Call|End (Function|Property|Sub|Type|Enum)|(Const|Function|Property|Sub|Type|Enum)|Declare|PtrSafe|WithEvents|Event|RaiseEvent)\b)
5050
- name: keyword.other.visibility.vba
5151
match: (?i:\b(Private|Public|Friend)\b)
5252
- name: constant.language.vba
@@ -70,7 +70,7 @@ repository:
7070
storage:
7171
patterns:
7272
- name: storage.modifier.vba
73-
match: (?i)\b(Class|Const|Dim|(G|L|S)et|ReDim( Preserve)?|Erase)\b
73+
match: (?i)\b(Class|Const|Dim|(G|L|S)et|ReDim( Preserve)?|Erase|Static)\b
7474

7575
strings:
7676
name: string.quoted.double

0 commit comments

Comments
 (0)