diff options
author | Ian Moffett <ian@osmora.org> | 2025-10-01 03:27:55 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-10-01 03:27:55 -0400 |
commit | 7f1b8e0de568defb342286216f0f9a8afd568bdb (patch) | |
tree | 966d92ae6842c28ee8b901d7e9023e49ae956acf /src/sys/np/core/np_lex.c | |
parent | e2503def53445f74d37fcbc5d67b956bd795092f (diff) |
np: lex: Add left/right bracket tokens
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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sys/np/core/np_lex.c b/src/sys/np/core/np_lex.c index 620a7ad..787f369 100644 --- a/src/sys/np/core/np_lex.c +++ b/src/sys/np/core/np_lex.c @@ -281,6 +281,12 @@ lex_nom(struct np_work *work, struct lex_token *res) case '=': res->token = TT_EQUALS; break; + case '[': + res->token = TT_LBRACK; + break; + case ']': + res->token = TT_RBRACK; + break; default: if (is_num(c)) { lex_nomnum(work, c, res); |