ohm
ohm copied to clipboard
Improve error messages for invalid escape sequences
Rather than a generic parse error, we should have a message like "Invalid escape sequence: \p"
Fixed by 56d8ff5.
Fix was reverted (21ca368) because it wasn't right -- grammars should not be accepting invalid inputs. Alex modified the grammar so that the generic parse failure is more useful for this cause, we could still make the errors a lot clearer.