Commit 250b62d9 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #1528 from Ahti/master

fix no multiline strings in mirb
parents fe8fd13d 5692b5ad
...@@ -58,6 +58,9 @@ is_code_block_open(struct mrb_parser_state *parser) ...@@ -58,6 +58,9 @@ is_code_block_open(struct mrb_parser_state *parser)
return FALSE; return FALSE;
} }
/* check for unterminated string */
if (parser->lex_strterm) return TRUE;
/* check if parser error are available */ /* check if parser error are available */
if (0 < parser->nerr) { if (0 < parser->nerr) {
const char *unexpected_end = "syntax error, unexpected $end"; const char *unexpected_end = "syntax error, unexpected $end";
...@@ -80,9 +83,6 @@ is_code_block_open(struct mrb_parser_state *parser) ...@@ -80,9 +83,6 @@ is_code_block_open(struct mrb_parser_state *parser)
return code_block_open; return code_block_open;
} }
/* check for unterminated string */
if (parser->lex_strterm) return TRUE;
switch (parser->lstate) { switch (parser->lstate) {
/* all states which need more code */ /* 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