Skip to content

Commit a30d749

Browse files
authored
Add DefType keywords (#123)
1 parent ffe259b commit a30d749

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

syntaxes/tests/vba/other.bas

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
' SYNTAX TEST "source.vba" "main syntax test"
22

3+
DefInt A-Z
4+
' <------ keyword.other.deftype.vba
5+
36
Attribute VB_Name = "SyntaxTest"
47
' <--------- keyword.other.vba
58

syntaxes/vba.yaml-tmlanguage

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ repository:
6464
match: (?i:\b(Attribute|Call|End (Function|Property|Sub|Type|Enum)|(Const|Function|Property|Sub|Type|Enum)|Declare|PtrSafe|WithEvents|Event|RaiseEvent|Implements)\b)
6565
- name: keyword.other.option.vba
6666
match: (?i)\bOption (Base [01]|Compare (Binary|Text)|Explicit|Private Module)\b
67+
- name: keyword.other.deftype.vba
68+
match: (?i)\b(DefBool|DefByte|DefInt|DefLng|DefLngLng|DefLngPtr|DefCur|DefSng|DefDbl|DefDec|DefDate|DefStr|DefObj|DefVar)\b
6769
- name: keyword.other.visibility.vba
6870
match: (?i:\b(Private|Public|Global|Friend)\b)
6971
- name: constant.language.vba

0 commit comments

Comments
 (0)