diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-12-10 12:34:23 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2016-12-10 12:35:12 +0900 |
| commit | 7b968ca893b5c24e07ba67e4e5100d93a4024418 (patch) | |
| tree | aa74ccc2b80e75d0f183c2cab0d0fc12f85d2132 /mrbgems/mruby-compiler/core/parse.y | |
| parent | 8c26efd7ed0cbaaf85b2e090bb2801f00b9c1226 (diff) | |
| download | mruby-7b968ca893b5c24e07ba67e4e5100d93a4024418.tar.gz mruby-7b968ca893b5c24e07ba67e4e5100d93a4024418.zip | |
Clear parsing_heredoc at the end of file
Diffstat (limited to 'mrbgems/mruby-compiler/core/parse.y')
| -rw-r--r-- | mrbgems/mruby-compiler/core/parse.y | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-compiler/core/parse.y b/mrbgems/mruby-compiler/core/parse.y index 957ad5815..ee3373fbf 100644 --- a/mrbgems/mruby-compiler/core/parse.y +++ b/mrbgems/mruby-compiler/core/parse.y @@ -3946,6 +3946,7 @@ parse_string(parser_state *p) } } if ((len-1 == hinf->term_len) && (strncmp(s, hinf->term, len-1) == 0)) { + if (c < 0) p->parsing_heredoc = NULL; return tHEREDOC_END; } } |
