diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-01 16:32:58 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-01 16:32:58 -0400 |
commit | ec3f0a41258099b4aa04ce236d062ffe0580f27d (patch) | |
tree | dce0bdacf45a68801c48ee7717aeb58bfd464df5 /src/sys/np/core/np_lex.c | |
parent | db61b5925966587717a17d48339bc8fea58a142b (diff) |
np: lex: Add TT_NONE token for invalid types
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'src/sys/np/core/np_lex.c')
-rw-r--r-- | src/sys/np/core/np_lex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sys/np/core/np_lex.c b/src/sys/np/core/np_lex.c index 8eb5039..eb15a52 100644 --- a/src/sys/np/core/np_lex.c +++ b/src/sys/np/core/np_lex.c @@ -256,6 +256,7 @@ lex_nom(struct np_work *work, struct lex_token *res) } lex_st = &work->lex_st; + res->token = TT_NONE; /* Skip all whitespace */ while ((c = lex_pop(work)) != 0) { |