summaryrefslogtreecommitdiffhomepage
path: root/src/codegen.c
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-03-04 09:49:16 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-03-04 09:49:16 +0900
commit02dba483675842b318deb1d042d9069ae9fcdb58 (patch)
tree6788bdc018791190abcaf20d6d540974ba2fd042 /src/codegen.c
parente13248bedf7f5d4ec9dded0320eb43e258c6e726 (diff)
parent73309aefa5a049a8201a3f2c6ef7ae4cd08af9dd (diff)
downloadmruby-02dba483675842b318deb1d042d9069ae9fcdb58.tar.gz
mruby-02dba483675842b318deb1d042d9069ae9fcdb58.zip
Merge branch 'heredoc' of https://github.com/FUKUZAWA-Tadashi/mruby into FUKUZAWA-Tadashi-heredoc
Diffstat (limited to 'src/codegen.c')
-rw-r--r--src/codegen.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/codegen.c b/src/codegen.c
index 29fce8fc4..d2640904a 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -1902,6 +1902,11 @@ codegen(codegen_scope *s, node *tree, int val)
}
break;
+ case NODE_HEREDOC:
+ /*if(tree == NULL){printf("heredoc error 1\n");exit(11);}*/
+ tree = ((struct mrb_parser_heredoc_info *)tree)->doc;
+ /*if(tree == NULL){printf("heredoc error 2\n");exit(12);}*/
+ /* fall through */
case NODE_DSTR:
if (val) {
node *n = tree;