File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ ' SYNTAX TEST "source.vba" "numbers"
2+
3+ Dim dec As Decimal
4+ dec = 2.375 D
5+ ' ^^^^^^ constant.numeric.decimal
6+ dec = 4.000
7+ ' ^^^^^ constant.numeric.decimal
8+
9+ Dim doub As Double
10+ doub= 4.0 R
11+ ' ^^^^ constant.numeric.decimal
12+
13+ Dim sing As Single
14+ sing = 4.2 F
15+ ' ^^^^ constant.numeric.decimal
16+
17+ Dim i As Integer
18+ i = 123
19+ ' ^^^ constant.numeric.integer
20+ i = 1 _000_000
21+ ' ^^^^^^^^^ constant.numeric.integer
Original file line number Diff line number Diff line change 88 "patterns" : [
99 { "include" : " #comments" },
1010 { "include" : " #keywords" },
11+ { "include" : " #numbers" },
1112 { "include" : " #option" },
1213 { "include" : " #types" },
1314 { "include" : " #visibility" }
2627 }
2728 ]
2829 },
30+ "numbers" : {
31+ "patterns" : [
32+ {
33+ "name" : " constant.numeric.decimal" ,
34+ "match" : " ([0-9]+)(\\ .)([0-9]+)(D|R|F)?"
35+ },
36+ {
37+ "name" : " constant.numeric.integer" ,
38+ "match" : " (([0-9]+)([_]?))+"
39+ }
40+ ]
41+ },
2942 "option" : {
3043 "name" : " storage.modifier.option" ,
3144 "match" : " \\ b(Option (Explicit|Private Module|Base|(Compare (Binary|Text)+))?)\\ b"
You can’t perform that action at this time.
0 commit comments