diff options
author | Les Hill <leshill@gmail.com> | 2012-08-14 23:04:25 -0700 |
---|---|---|
committer | Les Hill <leshill@gmail.com> | 2012-08-14 23:12:22 -0700 |
commit | 9ce3032678bf816291938753a720df4a8bb6e52e (patch) | |
tree | ce6783f57abef2d76be029b39e1e22cb2afb02a0 /src | |
parent | 2b3e7773409b9fba68e275d49c0c0969e0294a7e (diff) | |
download | handlebars.js-9ce3032678bf816291938753a720df4a8bb6e52e.zip handlebars.js-9ce3032678bf816291938753a720df4a8bb6e52e.tar.gz handlebars.js-9ce3032678bf816291938753a720df4a8bb6e52e.tar.bz2 |
Recognize bar='baz' hash argument
Diffstat (limited to 'src')
-rw-r--r-- | src/handlebars.l | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/handlebars.l b/src/handlebars.l index f81fcdb..2e0c4f7 100644 --- a/src/handlebars.l +++ b/src/handlebars.l @@ -31,6 +31,7 @@ <mu>"}}}" { this.popState(); return 'CLOSE'; } <mu>"}}" { this.popState(); return 'CLOSE'; } <mu>'"'("\\"["]|[^"])*'"' { yytext = yytext.substr(1,yyleng-2).replace(/\\"/g,'"'); return 'STRING'; } +<mu>"'"("\\"[']|[^'])*"'" { yytext = yytext.substr(1,yyleng-2).replace(/\\"/g,'"'); return 'STRING'; } <mu>"@"[a-zA-Z]+ { yytext = yytext.substr(1); return 'DATA'; } <mu>"true"/[}\s] { return 'BOOLEAN'; } <mu>"false"/[}\s] { return 'BOOLEAN'; } |