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'; }