Fix unexpected EOF errors getting lost
This commit is contained in:
parent
820cbece20
commit
1c52c30111
5 changed files with 39 additions and 28 deletions
|
|
@ -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", [&]() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue