Literal match with capture causing 'invalid input text' error #435
Unanswered
BigBallard
asked this question in
Q&A
Replies: 1 comment 8 replies
-
|
The lexer needs to be able to match every fragment of valid input text. In your case you do not have a lexer rule for matching |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a struct that represents a percentage in a particular hex context. The intent here is to match with the starting percent literal but to not capture it, followed by two hex values that would be captured as string.
pnErrends up beinglexer: invalid input text "%01"How may I alter this setup (without using regex) to work?Beta Was this translation helpful? Give feedback.
All reactions