Fix returning TOKEN_EOF when lexing at EOF
This commit is contained in:
1 parent
ec2dcf9a72
commit
d9e4f64d2e
2 files changed
+12
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user