From 531daa0a9d6d8ec5a29f8ecd6e54dd3b944b32d5 Mon Sep 17 00:00:00 2001 From: h2so5 Date: Sun, 7 Apr 2013 18:05:23 +0900 Subject: Fix checking for heredoc in mirb --- tools/mirb/mirb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mirb/mirb.c b/tools/mirb/mirb.c index ba400bf95..044d95faa 100644 --- a/tools/mirb/mirb.c +++ b/tools/mirb/mirb.c @@ -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; -- cgit v1.2.3