summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlan Johnson <alan@commondream.net>2011-09-02 09:04:41 -0400
committerAlan Johnson <alan@commondream.net>2011-09-02 09:04:41 -0400
commitfc84308cc9124c94dcd372629d15bd10ce30875d (patch)
tree6d36b6dcfa946127cebf01dff27921ef8b3f7e1e /src
parent91bbc4fd2ca1e161fad3fba0c51a3732216503b3 (diff)
downloadhandlebars.js-fc84308cc9124c94dcd372629d15bd10ce30875d.zip
handlebars.js-fc84308cc9124c94dcd372629d15bd10ce30875d.tar.gz
handlebars.js-fc84308cc9124c94dcd372629d15bd10ce30875d.tar.bz2
Got simple literal expressions added into paths.
Diffstat (limited to 'src')
-rw-r--r--src/handlebars.l1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/handlebars.l b/src/handlebars.l
index 0d3cdf0..57ebb90 100644
--- a/src/handlebars.l
+++ b/src/handlebars.l
@@ -28,6 +28,7 @@
<mu>"false"/[}\s] { return 'BOOLEAN'; }
<mu>[0-9]+/[}\s] { return 'INTEGER'; }
<mu>[a-zA-Z0-9_$-]+/[=}\s/.] { return 'ID'; }
+<mu>\[.*\] { yytext = yytext.substr(1, yyleng-2); return 'ID'; }
<mu>. { return 'INVALID'; }
<INITIAL,mu><<EOF>> { return 'EOF'; }