summaryrefslogtreecommitdiffstats
path: root/dimension/tokenize.c
diff options
context:
space:
mode:
Diffstat (limited to 'dimension/tokenize.c')
-rw-r--r--dimension/tokenize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dimension/tokenize.c b/dimension/tokenize.c
index b5a72f1..1fddea3 100644
--- a/dimension/tokenize.c
+++ b/dimension/tokenize.c
@@ -1045,7 +1045,8 @@ dmnsn_yylex_cleanup(void *yyscanner)
}
dmnsn_token_buffer *prev = tbuffer->prev;
- dmnsn_delete_token_buffer(tbuffer);
+ if (tbuffer->type != DMNSN_T_MACRO)
+ dmnsn_delete_token_buffer(tbuffer);
tbuffer = prev;
}
dmnsn_yyset_extra(NULL, yyscanner);