aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--parser.c7
-rw-r--r--parser.l1
2 files changed, 5 insertions, 3 deletions
diff --git a/parser.c b/parser.c
index d9e085f..bd77748 100644
--- a/parser.c
+++ b/parser.c
@@ -1205,14 +1205,15 @@ YY_RULE_SETUP
#line 206 "parser.l"
{
fprintf(stderr, "invalid utf8 byte: \\%hho\n", yytext[0]);
+ return -1;
}
YY_BREAK
case 49:
YY_RULE_SETUP
-#line 210 "parser.l"
+#line 211 "parser.l"
YY_FATAL_ERROR( "flex scanner jammed" );
YY_BREAK
-#line 1216 "parser.c"
+#line 1217 "parser.c"
case YY_END_OF_BUFFER:
{
@@ -2304,7 +2305,7 @@ static int yy_flex_strlen (yyconst char * s , yyscan_t yyscanner)
#define YYTABLES_NAME "yytables"
-#line 210 "parser.l"
+#line 211 "parser.l"
diff --git a/parser.l b/parser.l
index fdf2aa3..33075dc 100644
--- a/parser.l
+++ b/parser.l
@@ -205,6 +205,7 @@ static void runes_parser_handle_text(RunesTerm *t, char *text, size_t len);
(?s:.) {
fprintf(stderr, "invalid utf8 byte: \\%hho\n", yytext[0]);
+ return -1;
}
%%