From 056cda72be25c0e0122feb00b5874b16c2e335db Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Tue, 7 Feb 2023 15:45:11 +0900 Subject: [PATCH] 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. --- mrbgems/mruby-bin-mirb/tools/mirb/mirb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c index 4ee4ab44a..78c3ed40f 100644 --- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c +++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c @@ -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 */