diff options
author | kpdecker <kpdecker@gmail.com> | 2013-07-24 23:39:33 -0500 |
---|---|---|
committer | kpdecker <kpdecker@gmail.com> | 2013-07-24 23:39:33 -0500 |
commit | 117239ca7c05d05ac32c84ec4c4e39688b352ec0 (patch) | |
tree | aaf1857245717f6c0c11a6e98feceb050dbf3bb8 /src | |
parent | c373d1c6d496218a0d2b863ff9e2cfa221350ae3 (diff) | |
download | handlebars.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.yy | 10 |
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) |