summaryrefslogtreecommitdiffstats
path: root/dimension
diff options
context:
space:
mode:
Diffstat (limited to 'dimension')
-rw-r--r--dimension/lexer.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/dimension/lexer.l b/dimension/lexer.l
index d635bd1..d206605 100644
--- a/dimension/lexer.l
+++ b/dimension/lexer.l
@@ -355,6 +355,8 @@ dmnsn_print_token(FILE *file, dmnsn_token token)
tname = "\\(";
} else if (token.type == DMNSN_T_RPAREN) {
tname = "\\)";
+ } else if (token.type == DMNSN_T_LEX_ERROR) {
+ tname = "(error)";
} else {
tname = dmnsn_token_string(token.type);
}