Skip to content

Commit d17e58e

Browse files
authored
Add Implements keyword (#98)
1 parent e264f06 commit d17e58e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

syntaxes/tests/vba/other.bas

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
Attribute VB_Name = "SyntaxTest"
44
' <--------- keyword.other.vba
55

6+
Implements IRandomizer
7+
' <---------- keyword.other.vba
8+
69
Public Const FOO As Integer = 1
710
' ^^^^^ keyword.other.vba
811
' ^^ keyword.control.vba

syntaxes/vba.tmGrammar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ repository:
4848
- name: keyword.control.vba
4949
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)))
5050
- name: keyword.other.vba
51-
match: (?i:\b(Attribute|Call|End (Function|Property|Sub|Type|Enum)|(Const|Function|Property|Sub|Type|Enum)|Declare|PtrSafe|WithEvents|Event|RaiseEvent)\b)
51+
match: (?i:\b(Attribute|Call|End (Function|Property|Sub|Type|Enum)|(Const|Function|Property|Sub|Type|Enum)|Declare|PtrSafe|WithEvents|Event|RaiseEvent|Implements)\b)
5252
- name: keyword.other.visibility.vba
5353
match: (?i:\b(Private|Public|Friend)\b)
5454
- name: constant.language.vba

0 commit comments

Comments
 (0)