We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue is _number being used as choice in literal, but also as part of _decimal_number.
_number
choice
literal
_decimal_number
literal: $ => prec(2, choice( $._number, $._decimal_number, $._literal_string, $.keyword_true, $.keyword_false, $.keyword_null, ), ), _double_quote_string: _ => seq('"', /[^"]*/, '"'), _literal_string: $ => choice( seq("'", /[^']*/, "'"), $._double_quote_string, ), _number: _ => /\d+/, _decimal_number: $ => choice( seq(optional("-"), ".", $._number), seq(optional("-"), $._number, ".", $._number), seq(optional("-"), $._number, "."), ),
Therefore, \d+ is correct, and a new anonymous option _integral_number must be added, using seq(optional("-"), $._number).
\d+
_integral_number
seq(optional("-"), $._number)
The text was updated successfully, but these errors were encountered:
(identifier)
Fixed by 756ffc2 as part of #102.
Sorry, something went wrong.
Closed in #102
No branches or pull requests
Issue is
_number
being used aschoice
inliteral
, but also as part of_decimal_number
.Therefore,
\d+
is correct, and a new anonymous option_integral_number
must be added, usingseq(optional("-"), $._number)
.The text was updated successfully, but these errors were encountered: