lexer: Putback non-identifier token

Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
2026-02-15 13:28:42 -05:00
parent 8a54fa74ba
commit b876cd7edf

View File

@@ -142,6 +142,7 @@ lexer_scan_ident(struct rifle_state *state, int lc, struct token *tok)
}
if (!isalnum(c) && c != '.' && c != '_') {
lexer_putback(state, c);
buf[bufsz] = '\0';
break;
}