Skip to content

Commit

Permalink
Allow colon characters in identifiers
Browse files Browse the repository at this point in the history
Issue #460
  • Loading branch information
jpfiset committed Mar 4, 2013
1 parent bf30bf9 commit 681f1a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/handlebars.l
Original file line number Diff line number Diff line change
Expand Up @@ -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*/ }
Expand Down

0 comments on commit 681f1a6

Please sign in to comment.