Fix returning TOKEN_EOF when lexing at EOF

This commit is contained in:
josh committed 2021-07-06 11:55:44 -04:00
1 parent ec2dcf9a72
commit d9e4f64d2e
2 files changed
+12

No files matched your search

+5
View File
@@ -206,6 +206,11 @@ class <%= classname %>
}
}
}
else if (attempt_info.length == 0u)
{
lt.token = TOKEN_EOF;
break;
}
if (!lex_continue)
{
if (last_accepts_info.token != TOKEN_NONE)