mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix checking for heredoc in mirb
This commit is contained in:
+1
-1
@@ -39,7 +39,7 @@ is_code_block_open(struct mrb_parser_state *parser)
|
||||
int code_block_open = FALSE;
|
||||
|
||||
/* check for heredoc */
|
||||
if (parser->heredoc_starts_nextline) return TRUE;
|
||||
if (parser->parsing_heredoc != NULL) return TRUE;
|
||||
if (parser->heredoc_end_now) {
|
||||
parser->heredoc_end_now = FALSE;
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user