File tree Expand file tree Collapse file tree 3 files changed +34
-11
lines changed
Expand file tree Collapse file tree 3 files changed +34
-11
lines changed Original file line number Diff line number Diff line change @@ -7,19 +7,40 @@ dec = 2.375D
77dec = 4.000
88' ^^^^^ constant.numeric.decimal
99
10- Dim doub As Double
11- ' ^^^^^^ support.type.Double
12- doub = 4.0 R
13- ' ^^^^ constant.numeric.decimal
10+ Dim dub As Double
11+ ' ^^^^^^ support.type.Double
12+ dub = 4.0 R
13+ ' ^^^^ constant.numeric.decimal
1414
15- Dim sing As Single
16- ' ^^^^^^ support.type.Single
17- sing = 4.2 F
18- ' ^^^^ constant.numeric.decimal
15+ Dim sng As Single
16+ ' ^^^^^^ support.type.Single
17+ sng = 4.2 F
18+ ' ^^^^ constant.numeric.decimal
1919
2020Dim i As Integer
2121' ^^^^^^^ support.type.Integer
2222i = 123
2323' ^^^ constant.numeric.integer
2424i = 1 _000_000
2525' ^^^^^^^^^ constant.numeric.integer
26+
27+ Dim ui as UInteger
28+ ' ^^^^^^^^ support.type.UInteger
29+ ui = 123 ui
30+ ' ^^^^^ constant.numeric.integer
31+ ui = 45 _67UI
32+ ' ^^^^^^^ constant.numeric.integer
33+
34+ Dim ul as ULong
35+ ' ^^^^^ support.type.ULong
36+ ul = 123456 ul
37+ ' ^^^^^^^^ constant.numeric.integer
38+ ul = 123 _456_789UL
39+ ' ^^^^^^^^^^^^^ constant.numeric.integer
40+
41+ Dim us as UShort
42+ ' ^^^^^^ support.type.UShort
43+ us = 1 us
44+ ' ^^^ constant.numeric.integer
45+ us = 1 _2US
46+ ' ^^^^^ constant.numeric.integer
Original file line number Diff line number Diff line change 22Attribute VB_Name = "SyntaxTest"
33' <--------- keyword.Attribute.vba
44
5+ ' Some comment
6+ ' ^^^^^^^^^^^^^^ comment.line.quote
7+
58Public Const FOO As Integer = 1
69' <------ storage.modifier.visibility
710' ^^^^^ keyword.Const.vba
@@ -20,8 +23,7 @@ With presentation
2023 For Each slide In .Slides
2124' ^^^ keyword.control.For.vba
2225' ^^^^ keyword.control.Each.vba
23- Next ' Some comment
26+ Next
2427' ^^^^ keyword.control.Next.vba
25- ' ^^^^^^^^^^^^^^ comment.line.quote
2628End With
2729' <-------- keyword.control.End.vba
Original file line number Diff line number Diff line change 4848 },
4949 {
5050 "name" : " constant.numeric.integer" ,
51- "match" : " (([0-9]+)([_]?))+"
51+ "match" : " (([0-9]+)([_]?))+(ui|UI|ul|UL|us|US)? "
5252 }
5353 ]
5454 },
You can’t perform that action at this time.
0 commit comments