Merge pull request #1509 from FUKUZAWA-Tadashi/heredoc-bugfix

fix bugs on Heredocument
This commit is contained in:
Yukihiro "Matz" Matsumoto
2013-09-25 18:02:00 -07:00
3 changed files with 170 additions and 36 deletions
+3 -2
View File
@@ -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;