summaryrefslogtreecommitdiff
path: root/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'lex.c')
-rw-r--r--lex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lex.c b/lex.c
index d7641a4..3689432 100644
--- a/lex.c
+++ b/lex.c
@@ -275,5 +275,6 @@ LexResult lex(char* input) {
RawLine line = {.str = input, .pos = 0};
RegionVec reg_arena = make_RegionVec(256);
TokenVec toks = lex_level(&line, '\0', &reg_arena);
+ push_to_TokenVec(&toks, (Token){.kind = TOK_SPECIAL, .as.spec = EOL});
return (LexResult){.top_tokens = toks, .reg_arena = reg_arena};
}