From 4e5cf173112fbc465d9dee933cd31fc23d20eeb8 Mon Sep 17 00:00:00 2001 From: Schuyler Duveen Date: Fri, 13 May 2011 11:40:31 -0400 Subject: [PATCH] support "$" as an ID character: google has a bunch of json that has $t, etc values --- src/handlebars.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlebars.l b/src/handlebars.l index 8dfbf5b9..83014c79 100644 --- a/src/handlebars.l +++ b/src/handlebars.l @@ -24,7 +24,7 @@ "}}}" { this.begin("INITIAL"); return 'CLOSE'; } "}}" { this.begin("INITIAL"); return 'CLOSE'; } '"'("\\"["]|[^"])*'"' { yytext = yytext.substr(1,yyleng-2).replace(/\\"/g,'"'); return 'STRING'; } -[a-zA-Z0-9_-]+/[=}\s/.] { return 'ID'; } +[a-zA-Z0-9_$-]+/[=}\s/.] { return 'ID'; } . { return 'INVALID'; } <> { return 'EOF'; }