Lexer: support underscores in numeric literals
This commit is contained in:
+13
-1
@@ -14,7 +14,19 @@ val array = array<Any>(
|
||||
0X1l,
|
||||
0b1l,
|
||||
0B1l,
|
||||
0
|
||||
0,
|
||||
1_2,
|
||||
12__34,
|
||||
0x1_2_3_4,
|
||||
0B0,
|
||||
0b0001_0010_0100_1000,
|
||||
1_2L,
|
||||
12__34l,
|
||||
0x1_2_3_4L,
|
||||
0B0L,
|
||||
0b0001_0010_0100_1000l,
|
||||
0xa_af1,
|
||||
0xa_af_1
|
||||
)
|
||||
|
||||
val a = 01
|
||||
Reference in New Issue
Block a user