diff options
Diffstat (limited to 'src/lexparse.c')
| -rw-r--r-- | src/lexparse.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lexparse.c b/src/lexparse.c index 3a55b33..e2315fe 100644 --- a/src/lexparse.c +++ b/src/lexparse.c @@ -215,9 +215,8 @@ TokenVec* lex_level(char* line, size_t* pos, char until, TokenVecVec* tok_seq_po push_to_TokenVec(&tokens, m_last.value); } - if (until == '\0') { - push_to_TokenVec(&tokens, (Token){.kind = TOK_SPEC, .as.spec = (SpecialToken){.kind = SPEC_OP, .as.op = OP_EOL}}); - } + push_to_TokenVec(&tokens, (Token){.kind = TOK_SPEC, .as.spec = (SpecialToken){.kind = SPEC_OP, .as.op = OP_EOL}}); + return push_to_TokenVecVec(tok_seq_pool, tokens); } |
