public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4741ed8
)
Better error reporting for unterminated strings.
author
David Given
<dg@cowlark.com>
Sun, 2 Sep 2018 16:55:44 +0000
(18:55 +0200)
committer
David Given
<dg@cowlark.com>
Sun, 2 Sep 2018 16:55:44 +0000
(18:55 +0200)
util/mcgg/scan.l
patch
|
blob
|
history
diff --git
a/util/mcgg/scan.l
b/util/mcgg/scan.l
index
447a7d3
..
9d06d5b
100644
(file)
--- a/
util/mcgg/scan.l
+++ b/
util/mcgg/scan.l
@@
-30,6
+30,7
@@
static int braces = 0;
yylval.string = strdup(yytext);
return QFRAGMENT;
}
+<QSTRING>. yyerror("bad string input '%s' at line %d\n", yytext, yylineno);
<INITIAL>"/*" BEGIN(COMMENT);
<COMMENT>"*/" BEGIN(INITIAL);