Handle numeric separators in integer literals while tokenizing

This commit is contained in:
dcodeIO
2018-06-02 13:39:24 +02:00
parent f69bccfe09
commit 0054eae491
7 changed files with 126 additions and 12 deletions

View File

@ -0,0 +1,20 @@
111111;
21;
41610;
2302755;
111111;
111111;
21;
21;
41610;
41610;
2302755;
2302755;
// ERROR 6188: "Numeric separators are not allowed here." in numeric-separators.ts:8:8
// ERROR 6189: "Multiple consecutive numeric separators are not permitted." in numeric-separators.ts:9:3
// ERROR 6188: "Numeric separators are not allowed here." in numeric-separators.ts:11:10
// ERROR 6189: "Multiple consecutive numeric separators are not permitted." in numeric-separators.ts:12:5
// ERROR 6188: "Numeric separators are not allowed here." in numeric-separators.ts:14:10
// ERROR 6189: "Multiple consecutive numeric separators are not permitted." in numeric-separators.ts:15:5
// ERROR 6188: "Numeric separators are not allowed here." in numeric-separators.ts:17:10
// ERROR 6189: "Multiple consecutive numeric separators are not permitted." in numeric-separators.ts:18:5