diff options
author | Ian Moffett <ian@osmora.org> | 2025-09-30 23:14:42 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2025-09-30 23:15:11 -0400 |
commit | 2cf918c3e20164559f1bae5fbd83fb7a40e2190a (patch) | |
tree | 1a63891b78260ccceb2f11309db31ad7b36f1e4f /src/sys/np/core/np_lex.c | |
parent | eae25fcb847756d78d5f47393885672ecc6b69b7 (diff) |
np: lex: Detect '*' token (TT_STAR)
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 2b47dd9..f870c0c 100644 --- a/src/sys/np/core/np_lex.c +++ b/src/sys/np/core/np_lex.c @@ -194,6 +194,9 @@ lex_nom(struct np_work *work, struct lex_token *res) case ',': res->token = TT_COMMA; break; + case '*': + res->token = TT_STAR; + break; default: /* Stuff like '1var_name' is invalid */ if (!is_alpha(c)) { |