lang: lex: fix underscore label producing two separate tokens
This commit is contained in:
@@ -890,8 +890,8 @@ static enum ivy_status read_ident(struct ivy_lexer *lex)
|
|||||||
}
|
}
|
||||||
|
|
||||||
const char *s = b_string_ptr(str);
|
const char *s = b_string_ptr(str);
|
||||||
if (!strcmp(s, "_")) {
|
if (!label && !strcmp(s, "_")) {
|
||||||
push_symbol(lex, IVY_SYM_UNDERSCORE);
|
return push_symbol(lex, IVY_SYM_UNDERSCORE);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ivy_keyword keyword = IVY_KW_NONE;
|
enum ivy_keyword keyword = IVY_KW_NONE;
|
||||||
|
|||||||
Reference in New Issue
Block a user