diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-07 06:07:37 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-07 06:07:37 -0700 |
| commit | 47bccdc486d2d78ef86d0e7d035ba00f53441554 (patch) | |
| tree | 12e09c27695a9e761fc57770f8e37665dd12db06 | |
| parent | c3de0e15bb21f69f7d8cd6bb263094dfc386cab7 (diff) | |
| parent | 531daa0a9d6d8ec5a29f8ecd6e54dd3b944b32d5 (diff) | |
| download | mruby-47bccdc486d2d78ef86d0e7d035ba00f53441554.tar.gz mruby-47bccdc486d2d78ef86d0e7d035ba00f53441554.zip | |
Merge pull request #1159 from h2so5/fix-mirb-heredoc
Fix checking for heredoc in mirb
| -rw-r--r-- | tools/mirb/mirb.c | 2 |
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; |
