This commit is contained in:
Nikita Ivanov 2022-07-13 23:24:02 +05:00
parent 31455ff252
commit 6d96259e8f
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -302,7 +302,7 @@ static Token read_punct(Lexer *ctx, int type, char *s, int n)
int ret = cmp_nextn(ctx, n, s);
if (ret == 0)
tok.type = type;
tok = get_tok(ctx, type);
else
return get_tok(ctx, TOK_NULL);