summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-07-24 23:37:15 -0500
committerkpdecker <kpdecker@gmail.com>2013-07-24 23:37:43 -0500
commitdf7a3fb8c06270c90ba28fff3238707f323a3f8e (patch)
treeaae36d6aae88bd9e364ae47171d6a5bfe6a9382b /src
parent199f3984c6c07f731af2e4cbe2a42b62d98c6e46 (diff)
downloadhandlebars.js-df7a3fb8c06270c90ba28fff3238707f323a3f8e.zip
handlebars.js-df7a3fb8c06270c90ba28fff3238707f323a3f8e.tar.gz
handlebars.js-df7a3fb8c06270c90ba28fff3238707f323a3f8e.tar.bz2
Use ebnf iteration for hash production
Diffstat (limited to 'src')
-rw-r--r--src/handlebars.yy7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/handlebars.yy b/src/handlebars.yy
index 6c284f4..dc79156 100644
--- a/src/handlebars.yy
+++ b/src/handlebars.yy
@@ -83,12 +83,7 @@ param
;
hash
- : hashSegments -> new yy.HashNode($1)
- ;
-
-hashSegments
- : hashSegments hashSegment { $1.push($2); $$ = $1; }
- | hashSegment -> [$1]
+ : hashSegment+ -> new yy.HashNode($1)
;
hashSegment