diff options
-rw-r--r-- | lib/handlebars/compiler/ast.js | 4 | ||||
-rw-r--r-- | src/handlebars.yy | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/handlebars/compiler/ast.js b/lib/handlebars/compiler/ast.js index ce5ee11..6ccd7f1 100644 --- a/lib/handlebars/compiler/ast.js +++ b/lib/handlebars/compiler/ast.js @@ -72,7 +72,9 @@ var AST = { this.isHelper = this.sexpr.isHelper; }, - SexprNode: function(rawParams, hash) { + SexprNode: function(rawParams, hash, locInfo) { + LocationInfo.call(this, locInfo); + this.type = "sexpr"; this.hash = hash; diff --git a/src/handlebars.yy b/src/handlebars.yy index 319b8ef..7bff512 100644 --- a/src/handlebars.yy +++ b/src/handlebars.yy @@ -71,8 +71,8 @@ simpleInverse ; sexpr - : path param* hash? -> new yy.SexprNode([$1].concat($2), $3) - | dataName -> new yy.SexprNode([$1], null) + : path param* hash? -> new yy.SexprNode([$1].concat($2), $3, @$) + | dataName -> new yy.SexprNode([$1], null, @$) ; param |