summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-07-24 23:39:33 -0500
committerkpdecker <kpdecker@gmail.com>2013-07-24 23:39:33 -0500
commit117239ca7c05d05ac32c84ec4c4e39688b352ec0 (patch)
treeaaf1857245717f6c0c11a6e98feceb050dbf3bb8 /src
parentc373d1c6d496218a0d2b863ff9e2cfa221350ae3 (diff)
downloadhandlebars.js-117239ca7c05d05ac32c84ec4c4e39688b352ec0.zip
handlebars.js-117239ca7c05d05ac32c84ec4c4e39688b352ec0.tar.gz
handlebars.js-117239ca7c05d05ac32c84ec4c4e39688b352ec0.tar.bz2
Use ebnf iteration/optional inMustache
Diffstat (limited to 'src')
-rw-r--r--src/handlebars.yy10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/handlebars.yy b/src/handlebars.yy
index bad05f4..8a89dff 100644
--- a/src/handlebars.yy
+++ b/src/handlebars.yy
@@ -61,18 +61,10 @@ simpleInverse
;
inMustache
- : path params hash -> [[$1].concat($2), $3]
- | path params -> [[$1].concat($2), null]
- | path hash -> [[$1], $2]
- | path -> [[$1], null]
+ : path param* hash? -> [[$1].concat($2), $3]
| dataName -> [[$1], null]
;
-params
- : params param { $1.push($2); $$ = $1; }
- | param -> [$1]
- ;
-
param
: path -> $1
| STRING -> new yy.StringNode($1)