Commit 1ff6dfd0 authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

should not leave open code on syntax errors; close #413

parent d271bf0a
......@@ -50,10 +50,10 @@ is_code_block_open(struct mrb_parser_state *parser)
code_block_open = TRUE;
}
else if (strcmp(message, "syntax error, unexpected keyword_end") == 0) {
code_block_open = TRUE;
code_block_open = FALSE;
}
else if (strcmp(message, "syntax error, unexpected tREGEXP_BEG") == 0) {
code_block_open = TRUE;
code_block_open = FALSE;
}
return code_block_open;
}
......
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