Fix unexpected EOF errors getting lost

This commit is contained in:
Max Brunsfeld 2016-09-03 22:46:14 -07:00
parent 820cbece20
commit 1c52c30111
5 changed files with 39 additions and 28 deletions

View file

@ -184,7 +184,7 @@ class CCodeGenerator {
void add_lex_function() {
line(
"static bool ts_lex(TSLexer *lexer, TSStateId state, bool error_mode) {");
"static bool ts_lex(TSLexer *lexer, TSStateId state) {");
indent([&]() {
line("START_LEXER();");
_switch("state", [&]() {