Closed paulyoung closed 10 years ago
Build is failing for node 0.8
These latest changes mean that manually thrown errors and cryptic PEG errors both get handled the same way:
Error on line 1, column 20: Expected "/*", "//", ";", [0-9], comment, end of line or whitespace but "." found.
1 : [a] == [b] !strong0.5
^ : -------------------^
That extra content really makes it a lot easier to understand what went wrong.
Forgot to add that I tried writing a rule that would allow me to manually throw an error for that case but I couldn't figure out an appropriate regex that wouldn't clash with the valid rule.
This is still a little bit work in progress but I wanted to get some eyes on it.