lexer: Putback non-identifier token
Signed-off-by: Ian Moffett <ian@mirocom.org>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user