summaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorh2so5 <[email protected]>2013-04-07 18:05:23 +0900
committerh2so5 <[email protected]>2013-04-07 18:05:23 +0900
commit531daa0a9d6d8ec5a29f8ecd6e54dd3b944b32d5 (patch)
tree12e09c27695a9e761fc57770f8e37665dd12db06 /tools
parentc3de0e15bb21f69f7d8cd6bb263094dfc386cab7 (diff)
downloadmruby-531daa0a9d6d8ec5a29f8ecd6e54dd3b944b32d5.tar.gz
mruby-531daa0a9d6d8ec5a29f8ecd6e54dd3b944b32d5.zip
Fix checking for heredoc in mirb
Diffstat (limited to 'tools')
-rw-r--r--tools/mirb/mirb.c2
1 files changed, 1 insertions, 1 deletions
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;