diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-30 21:19:36 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-30 21:19:36 -0400 |
commit | 5828e412a4d08f19d8c6eeb10d93db5ee4a85285 (patch) | |
tree | d6168681ead5c898f7d3678bff2f4c33ec371786 /src/sys/np | |
parent | 4f62fe8f9fde8caf9ecd34ac4318c89ceb745673 (diff) |
np: lex: Assume identifier if no error
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/np')
-rw-r--r-- | src/sys/np/core/np_lex.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |