From 5828e412a4d08f19d8c6eeb10d93db5ee4a85285 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 30 Sep 2025 21:19:36 -0400 Subject: np: lex: Assume identifier if no error Signed-off-by: Ian Moffett --- src/sys/np/core/np_lex.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/sys/np/core') diff --git a/src/sys/np/core/np_lex.c b/src/sys/np/core/np_lex.c index ca1d065..5ddb442 100644 --- a/src/sys/np/core/np_lex.c +++ b/src/sys/np/core/np_lex.c @@ -179,11 +179,10 @@ lex_nom(struct np_work *work, struct lex_token *res) } error = lex_matchstr(work, c, res); - if (error == 0 || error < 0) { + if (error == 0) { break; } - pr_error("got bad token '%c'\n", c); error = -1; break; } -- cgit v1.2.3