aboutsummaryrefslogtreecommitdiff
path: root/source/main.elna
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2026-10-18 09:25:36 +0200
committerEugen Wissner <belka@caraus.de>2026-10-18 22:54:00 +0200
commit7440060f179e35fe63155a149bb5003c97e12013 (patch)
treeabdcb8aa74513312b2cc92d4c2b2b986c29fbc03 /source/main.elna
parent81043b67437445dcf83055098490e04cc88ff7ee (diff)
downloadelna-7440060f179e35fe63155a149bb5003c97e12013.tar.gz
Fix ICE on variable declarations in case branches
Diffstat (limited to 'source/main.elna')
-rw-r--r--source/main.elna4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/main.elna b/source/main.elna
index ee4079e..fb58766 100644
--- a/source/main.elna
+++ b/source/main.elna
@@ -23,6 +23,8 @@ begin
printf("Token: %.*s, length: %lu, final state: %i, position: %lu, kind: %i\n\0".ptr,
global_cursor.cursor - global_cursor.start, global_cursor.start,
global_cursor.cursor - global_cursor.start, global_cursor.state,
- global_cursor.position, token^.kind)
+ global_cursor.position, token^.kind);
+
+ elna_lexer_token_destroy(token)
until global_cursor.state = ElnaLexerState.eof
end.