diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-01 03:34:27 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-01 03:34:27 -0400 |
commit | 35c10bb221ab678fb1722bd36c489e1b65d45391 (patch) | |
tree | 84b777e16d5de0729c21cd9dd7b1b3b19483e0b2 /src/sys/np/core/np_lex.c | |
parent | 7f1b8e0de568defb342286216f0f9a8afd568bdb (diff) |
np: lex: Detect colon (':')
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 | 3 |
1 files changed, 3 insertions, 0 deletions
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); |