Ternary with numbers fails to parse when minified #33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Not sure how relevant this is for authored code, but bundlers remove spaces and leading zeroes from numbers. The snippet
currently fails to parse. Since I'm only superficially familiar with how Lezer grammar works, I don't actually know how a fix would look like. I'd have expected the parser to backtrack from the failed
MemberExpressionand try theConditionalExpression, but maybe the tokenizer eagerly combined the?.so theConditionalExpressioncan't be applied?This seems to be something to handle at the token level—
?.is only a deref operator when not followed by a digit. Attached patch uses an external tokenizer to implement it that way.Nice! Thanks for the fast fix.