diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sys/np/core/np_lex.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sys/np/core/np_lex.c b/src/sys/np/core/np_lex.c index 27341ab..cecb425 100644 --- a/src/sys/np/core/np_lex.c +++ b/src/sys/np/core/np_lex.c @@ -269,6 +269,8 @@ lex_nom(struct np_work *work, struct lex_token *res) /* Match the token type */ switch (c) { + case '\0': + return -2; /* EOF */ case '(': res->token = TT_LPAREN; break; |