mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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:
committed by
mimaki
parent
762ca43c16
commit
056cda72be
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user