Fix #5103: Add support for BigInt literals (#5104)

* Fix #5103: Add support for BigInt literals

* Fix typos found in testing

* Support binary, octal and hex BigInt literals

* Make decimal BigInt test consistent other bases

* Correct test BigInt test names

* Add Node versions to CI
This commit is contained in:
Robert de Forest
2019-11-26 21:01:28 -08:00
committed by Geoffrey Booth
parent ddb5dac49d
commit 09c95394e1
7 changed files with 34 additions and 11 deletions

View File

@@ -1212,9 +1212,10 @@ CSX_ATTRIBUTE = /// ^
///
NUMBER = ///
^ 0b[01]+ | # binary
^ 0o[0-7]+ | # octal
^ 0x[\da-f]+ | # hex
^ 0b[01]+n? | # binary
^ 0o[0-7]+n? | # octal
^ 0x[\da-f]+n? | # hex
^ \d+n | # decimal bigint
^ \d*\.?\d+ (?:e[+-]?\d+)? # decimal
///i