Skip to content

Commit 5c71beb

Browse files
authored
Add negative bigint literal support (#287)
Close #285
1 parent 1964cef commit 5c71beb

4 files changed

Lines changed: 3781 additions & 3756 deletions

File tree

‎grammar.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,6 +1274,7 @@ export default grammar({
12741274
const octal_literal = seq(choice("0o", "0O"), /[0-7](_?[0-7])*/);
12751275

12761276
const bigint_literal = seq(
1277+
optional(choice("-", "+")),
12771278
choice(hex_literal, binary_literal, octal_literal, decimal_digits),
12781279
"n",
12791280
);

‎src/grammar.json‎

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)