Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
S [ \t]+
BASE91S []-~!#-&(-[]+
%x SKIPNL
S [ \t]+
BASE91S []-~!#-&(-[]+
%x SKIPNL
%option yylineno
%option noyywrap
%option yylineno
%option noyywrap
<INITIAL><<EOF>> { return 0; }
<INITIAL><<EOF>> { return 0; }
-<*>. { FAIL("syntax error"); }
+<*>. {
+ yymore();
+ BEGIN(SYNTAXERR);
+}
+<SYNTAXERR>.* {
+ slilog(LI,M_DEBUG,"pubkeys syntax error at `%s'", yytext);
+ FAIL("syntax error");
+}
<*>\n { FAIL("syntax error - unexpected newline"); }
<<EOF>> { FAIL("syntax error - unexpected eof"); }
<*>\n { FAIL("syntax error - unexpected newline"); }
<<EOF>> { FAIL("syntax error - unexpected eof"); }