From a023fd85915df5e9959641e1b2ad8816b3cae0d6 Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 2 Sep 2018 18:55:44 +0200 Subject: [PATCH] Better error reporting for unterminated strings. --- util/mcgg/scan.l | 1 + 1 file changed, 1 insertion(+) diff --git a/util/mcgg/scan.l b/util/mcgg/scan.l index 447a7d395..9d06d5b38 100644 --- a/util/mcgg/scan.l +++ b/util/mcgg/scan.l @@ -30,6 +30,7 @@ static int braces = 0; yylval.string = strdup(yytext); return QFRAGMENT; } +. yyerror("bad string input '%s' at line %d\n", yytext, yylineno); "/*" BEGIN(COMMENT); "*/" BEGIN(INITIAL);