summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorFUKUZAWA-Tadashi <[email protected]>2013-09-14 01:00:19 +0900
committerFUKUZAWA-Tadashi <[email protected]>2013-09-22 18:14:40 +0900
commit8d34e00102a6ba39b57960e653b0d7b6b3428006 (patch)
tree2c3d49ed5bd6a3ba84733e53fce844a77bdda542 /include
parenteeac4be4ce06542361c61a42a1d413a4098467b5 (diff)
downloadmruby-8d34e00102a6ba39b57960e653b0d7b6b3428006.tar.gz
mruby-8d34e00102a6ba39b57960e653b0d7b6b3428006.zip
fix bugs on Heredocument
- heredoc in array literal - heredoc in args - heredoc in expression expand
Diffstat (limited to 'include')
-rw-r--r--include/mruby/compile.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/mruby/compile.h b/include/mruby/compile.h
index f8bb50e41..36cb67186 100644
--- a/include/mruby/compile.h
+++ b/include/mruby/compile.h
@@ -128,9 +128,10 @@ struct mrb_parser_state {
char buf[MRB_PARSER_BUF_SIZE];
int bidx;
- mrb_ast_node *heredocs; /* list of mrb_parser_heredoc_info* */
+ mrb_ast_node *all_heredocs; /* list of mrb_parser_heredoc_info* */
+ mrb_ast_node *heredocs_from_nextline;
mrb_ast_node *parsing_heredoc;
- mrb_bool heredoc_starts_nextline:1;
+ mrb_ast_node *lex_strterm_before_heredoc;
mrb_bool heredoc_end_now:1; /* for mirb */
void *ylval;