summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sys/np/core/np_lex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/sys/np/core/np_lex.c b/src/sys/np/core/np_lex.c
index 436df16..2b47dd9 100644
--- a/src/sys/np/core/np_lex.c
+++ b/src/sys/np/core/np_lex.c
@@ -174,10 +174,12 @@ lex_nom(struct np_work *work, struct lex_token *res)
/* Skip all whitespace */
while ((c = lex_pop(work)) != 0) {
+ if (c == '\n') {
+ ++work->line_no;
+ }
if (is_space(c)) {
continue;
}
-
break;
}