Skip to content

Commit b49adb4

Browse files
committed
Small cleanup
1 parent 1327adc commit b49adb4

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

syntax_test.res

+12-9
Original file line numberDiff line numberDiff line change
@@ -83,25 +83,28 @@ let a = +1_000_000.12
8383
let a = 1E3
8484
// ^^^constant.numeric
8585

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+
8697
// negative examples. Shouldn't assign numeric scope
8798
let a = 0bf
8899
// ^^^source.res
89100
let a = 0o58
90101
// ^^^^source.res
91102
let a = 0xfz
92103
// ^^^^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
102104

103105

104106
// === other primitives
107+
105108
let bar = true
106109
// ^^^^ constant.language
107110
let baz = false

0 commit comments

Comments
 (0)