Skip to content

Commit

Permalink
Merge pull request #49 from xunil-cloud/fix-hexnumber
Browse files Browse the repository at this point in the history
fix: correct regex for hexinteger
  • Loading branch information
madskjeldgaard authored Sep 21, 2024
2 parents 3746650 + 03f0a57 commit b815ee7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ module.exports = grammar({
),

integer: $ => /\d+/,
hexinteger: $ => /0x(\\d|[a-f]|[A-F])+/,
hexinteger: $ => /0x([a-fA-F\d])+/,
float: $ => /\d+\.\d+/,
exponential: $ => /-?\d+(\.\d+)?[eE]-?\d+/,
symbol: $ => choice(
Expand Down

0 comments on commit b815ee7

Please sign in to comment.