diff options
| author | h2so5 <[email protected]> | 2013-04-07 18:05:23 +0900 |
|---|---|---|
| committer | h2so5 <[email protected]> | 2013-04-07 18:05:23 +0900 |
| commit | 531daa0a9d6d8ec5a29f8ecd6e54dd3b944b32d5 (patch) | |
| tree | 12e09c27695a9e761fc57770f8e37665dd12db06 /tools | |
| parent | c3de0e15bb21f69f7d8cd6bb263094dfc386cab7 (diff) | |
| download | mruby-531daa0a9d6d8ec5a29f8ecd6e54dd3b944b32d5.tar.gz mruby-531daa0a9d6d8ec5a29f8ecd6e54dd3b944b32d5.zip | |
Fix checking for heredoc in mirb
Diffstat (limited to 'tools')
| -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; |
