Commit 5692b5ad authored by Lukas Stabe's avatar Lukas Stabe

fix no multiline strings in mirb

parent fe8fd13d
......@@ -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 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment