Skip to content

Commit

Permalink
Add Implements keyword (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
DecimalTurn authored Nov 27, 2023
1 parent e264f06 commit d17e58e
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/other.bas
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
Attribute VB_Name = "SyntaxTest"
' <--------- keyword.other.vba

Implements IRandomizer
' <---------- keyword.other.vba

Public Const FOO As Integer = 1
' ^^^^^ keyword.other.vba
' ^^ keyword.control.vba
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/vba.tmGrammar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ repository:
- name: keyword.control.vba
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)))
- name: keyword.other.vba
match: (?i:\b(Attribute|Call|End (Function|Property|Sub|Type|Enum)|(Const|Function|Property|Sub|Type|Enum)|Declare|PtrSafe|WithEvents|Event|RaiseEvent)\b)
match: (?i:\b(Attribute|Call|End (Function|Property|Sub|Type|Enum)|(Const|Function|Property|Sub|Type|Enum)|Declare|PtrSafe|WithEvents|Event|RaiseEvent|Implements)\b)
- name: keyword.other.visibility.vba
match: (?i:\b(Private|Public|Friend)\b)
- name: constant.language.vba
Expand Down

0 comments on commit d17e58e

Please sign in to comment.