summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-mirb
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2018-11-20 10:39:34 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2018-11-20 10:39:34 +0900
commitec19c34a209e05156cdce8d317234bc62489148f (patch)
tree8e6da8b2f739a7d506d0d8c8fda67b627364b415 /mrbgems/mruby-bin-mirb
parentf1eeaad84a1b1183c6e5128be0a4efeec6da5e8e (diff)
downloadmruby-ec19c34a209e05156cdce8d317234bc62489148f.tar.gz
mruby-ec19c34a209e05156cdce8d317234bc62489148f.zip
Fixed a bug in `mirb` heredoc handling; fix #3989
Diffstat (limited to 'mrbgems/mruby-bin-mirb')
-rw-r--r--mrbgems/mruby-bin-mirb/tools/mirb/mirb.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
index 1880f22f7..19f533acd 100644
--- a/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
+++ b/mrbgems/mruby-bin-mirb/tools/mirb/mirb.c
@@ -126,10 +126,6 @@ is_code_block_open(struct mrb_parser_state *parser)
/* check for heredoc */
if (parser->parsing_heredoc != NULL) return TRUE;
- if (parser->heredoc_end_now) {
- parser->heredoc_end_now = FALSE;
- return FALSE;
- }
/* check for unterminated string */
if (parser->lex_strterm) return TRUE;