Lexer: support underscores in numeric literals

This commit is contained in:
Mikhail Zarechenskiy
2016-11-08 18:38:56 +03:00
parent c956428d96
commit a77290e572
7 changed files with 1296 additions and 1115 deletions
+13 -1
View File
@@ -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