From 35c10bb221ab678fb1722bd36c489e1b65d45391 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Wed, 1 Oct 2025 03:34:27 -0400 Subject: np: lex: Detect colon (':') Signed-off-by: Ian Moffett --- src/sys/np/core/np_lex.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/sys/np/core/np_lex.c') diff --git a/src/sys/np/core/np_lex.c b/src/sys/np/core/np_lex.c index 787f369..27341ab 100644 --- a/src/sys/np/core/np_lex.c +++ b/src/sys/np/core/np_lex.c @@ -287,6 +287,9 @@ lex_nom(struct np_work *work, struct lex_token *res) case ']': res->token = TT_RBRACK; break; + case ':': + res->token = TT_COLON; + break; default: if (is_num(c)) { lex_nomnum(work, c, res); -- cgit v1.2.3