Permalink
Browse files

Allow colon characters in identifiers

Issue #460
  • Loading branch information...
1 parent bf30bf9 commit 681f1a63961b04c68dc4e671513675e946f6f3f9 @jpfiset committed Mar 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/handlebars.l
View
@@ -43,7 +43,7 @@
<mu>"true"/[}\s] { return 'BOOLEAN'; }
<mu>"false"/[}\s] { return 'BOOLEAN'; }
<mu>\-?[0-9]+/[}\s] { return 'INTEGER'; }
-<mu>[a-zA-Z0-9_$-]+/[=}\s\/.] { return 'ID'; }
+<mu>[a-zA-Z0-9_$:-]+/[=}\s\/.] { return 'ID'; }
<mu>'['[^\]]*']' { yytext = yytext.substr(1, yyleng-2); return 'ID'; }
<mu>. { return 'INVALID'; }
<par>\s+ { /*ignore whitespace*/ }

0 comments on commit 681f1a6

Please sign in to comment.