mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
fix no multiline strings in mirb
This commit is contained in:
@@ -58,6 +58,9 @@ is_code_block_open(struct mrb_parser_state *parser)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* check for unterminated string */
|
||||
if (parser->lex_strterm) return TRUE;
|
||||
|
||||
/* check if parser error are available */
|
||||
if (0 < parser->nerr) {
|
||||
const char *unexpected_end = "syntax error, unexpected $end";
|
||||
@@ -80,9 +83,6 @@ is_code_block_open(struct mrb_parser_state *parser)
|
||||
return code_block_open;
|
||||
}
|
||||
|
||||
/* check for unterminated string */
|
||||
if (parser->lex_strterm) return TRUE;
|
||||
|
||||
switch (parser->lstate) {
|
||||
|
||||
/* all states which need more code */
|
||||
|
||||
Reference in New Issue
Block a user