summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dimension/lexer.l2
1 files changed, 1 insertions, 1 deletions
diff --git a/dimension/lexer.l b/dimension/lexer.l
index 24195c0..953ef9b 100644
--- a/dimension/lexer.l
+++ b/dimension/lexer.l
@@ -267,7 +267,7 @@ unsigned long wchar;
dmnsn_diagnostic(filename, yylineno, yycolumn,
"Unrecognized character '%c' (0x%X)",
(int)*yytext, (unsigned int)*yytext);
- return DMNSN_T_LEX_ERROR;
+ RETURN_TOKEN(DMNSN_T_LEX_ERROR);
}
%%