TypeScript/tests/cases/conformance/parser/ecmascriptnext/numericSeparators/parser.numericSeparators.hex.ts
Wesley Wigham 9e51882d9c
Numeric separators (#20324)
* Add support into octal and binary literals

* Add hex support

* And finally support all numeric literals and fix spelling

* Update error message

* Refactor error in scanner to take a position

* Scan no separators in escape sequences, add escape sequence tests

* More decimal tests from the spec presentation examples

* Permissive scanning of excess separators

* Remove unnecessary assignment

* Make code easier to follow
2017-12-08 20:20:18 -05:00

5 lines
46 B
TypeScript

0x00_11;
0X0_1;
0x1100_0011;
0X0_11_0101;