mruby-bin-mirb: fix multi-line input issue; fix #5922

Bison changed the message for the end-of-file error. `mirb` should
be updated for the new message.
This commit is contained in:
Yukihiro "Matz" Matsumoto
2023-02-07 15:45:11 +09:00
committed by mimaki
parent 762ca43c16
commit 056cda72be
+1 -1
View File
@@ -150,7 +150,7 @@ is_code_block_open(struct mrb_parser_state *parser)
/* check if parser error are available */
if (0 < parser->nerr) {
const char unexpected_end[] = "syntax error, unexpected $end";
const char unexpected_end[] = "syntax error, unexpected end of file";
const char *message = parser->error_buffer[0].message;
/* a parser error occur, we have to check if */