Allow undefined and null in helper names

This commit is contained in:
kpdecker
2015-04-13 21:18:53 -05:00
parent 37a664bf64
commit dfd141cd35
4 changed files with 21 additions and 3 deletions
+2 -2
View File
@@ -83,8 +83,6 @@ partial
param
: helperName -> $1
| sexpr -> $1
| UNDEFINED -> new yy.UndefinedLiteral(yy.locInfo(@$))
| NULL -> new yy.NullLiteral(yy.locInfo(@$))
;
sexpr
@@ -109,6 +107,8 @@ helperName
| STRING -> new yy.StringLiteral($1, yy.locInfo(@$))
| NUMBER -> new yy.NumberLiteral($1, yy.locInfo(@$))
| BOOLEAN -> new yy.BooleanLiteral($1, yy.locInfo(@$))
| UNDEFINED -> new yy.UndefinedLiteral(yy.locInfo(@$))
| NULL -> new yy.NullLiteral(yy.locInfo(@$))
;
partialName