diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/handlebars.yy | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/handlebars.yy b/src/handlebars.yy index 02a2d14..ac178ba 100644 --- a/src/handlebars.yy +++ b/src/handlebars.yy @@ -18,8 +18,8 @@ statements ; statement - : openInverse program closeBlock { $$ = new yy.InverseNode($1, $2) } - | openBlock program closeBlock { $$ = new yy.BlockNode($1, $2) } + : openInverse program closeBlock { $$ = new yy.InverseNode($1, $2, $3) } + | openBlock program closeBlock { $$ = new yy.BlockNode($1, $2, $3) } | mustache { $$ = $1 } | partial { $$ = $1 } | CONTENT { $$ = new yy.ContentNode($1) } @@ -35,7 +35,7 @@ openInverse ; closeBlock - : OPEN_ENDBLOCK path CLOSE { } + : OPEN_ENDBLOCK path CLOSE { $$ = $2 } ; mustache |