Skip to content

Commit 01bb7c3

Browse files
committed
Simplify _hex_literal at the advice of tree-sitter generate
1 parent 6d0733f commit 01bb7c3

File tree

3 files changed

+79556
-80381
lines changed

3 files changed

+79556
-80381
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ module.exports = grammar({
455455
complex: $ => seq($._float_literal, "i"),
456456
float: $ => $._float_literal,
457457

458-
_hex_literal: $ => seq(/0[xX][0-9a-fA-F]+/),
458+
_hex_literal: $ => /0[xX][0-9a-fA-F]+/,
459459
_number_literal: $ => /(?:(?:\d+(?:\.\d*)?)|(?:\.\d+))(?:[eE][+-]?\d*)?/,
460460
_float_literal: $ => choice($._hex_literal, $._number_literal),
461461

src/grammar.json

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

0 commit comments

Comments
 (0)