Report errors that occur while lexing a grammar (fixes #262)
Improved error message for unterminated string literals (fixes #243)