File tree 1 file changed +12
-9
lines changed
1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -83,25 +83,28 @@ let a = +1_000_000.12
83
83
let a = 1E3
84
84
// ^^^constant.numeric
85
85
86
+ // to reconsider
87
+ let a = -. 1
88
+ // ^^ keyword.operator
89
+ // ^ constant.numeric
90
+ let a = 1 .
91
+ // ^ constant.numeric
92
+ // ^ punctuation.accessor
93
+ let a = .2
94
+ // ^ punctuation.accessor
95
+ // ^ constant.numeric
96
+
86
97
// negative examples. Shouldn't assign numeric scope
87
98
let a = 0bf
88
99
// ^^^source.res
89
100
let a = 0o58
90
101
// ^^^^source.res
91
102
let a = 0xfz
92
103
// ^^^^source.res
93
- let a = -. 1
94
- // ^^ keyword.operator
95
- // ^source.res
96
- let a = 1 .
97
- // ^constant.numeric
98
- // ^punctuation.accessor
99
- let a = .2
100
- // ^punctuation.accessor
101
- // ^constant.numeric
102
104
103
105
104
106
// === other primitives
107
+
105
108
let bar = true
106
109
// ^^^^ constant.language
107
110
let baz = false
You can’t perform that action at this time.
0 commit comments