mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-21 12:00:18 +00:00
some fix
This commit is contained in:
parent
99de613655
commit
82655d46c9
@ -157,8 +157,7 @@ int Lexer::eat_name() {
|
||||
const auto KW_END = kTokens + kTokenCount;
|
||||
|
||||
auto it = std::lower_bound(KW_BEGIN, KW_END, name);
|
||||
if(it != KW_END) {
|
||||
assert(*it == name);
|
||||
if(it != KW_END && *it == name) {
|
||||
add_token(it - kTokens);
|
||||
} else {
|
||||
add_token(TK("@id"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user