Closed dnbln closed 4 years ago
Thanks for catching this issue and working on a fix! I found a simpler fix in https://github.com/Mcat12/intellij-lalrpop/commit/ae1d42212be44b8ff6ad4fbb227c7e93c95232da, but I appreciate your help.
Turns out the above change doesn't support characters which use escape sequences, but we can actually remove character parsing altogether because it's only usage is in an unused grammar item, patterns. Patterns may not need to be supported (only used in extern
blocks, invoked as a separate parser by lalrpop, and even then I haven't seen any code which uses it), so I removed them for now.
If it turns out that we need to parse character literals, your changes will probably come in handy!
After rebuilding the last version, this is what happened: (This was taken from chapter 5.3 of the lalrpop book)