diff options
author | Jean-Pierre Fiset <jp@fiset.ca> | 2013-03-04 13:33:13 -0500 |
---|---|---|
committer | Jean-Pierre Fiset <jp@fiset.ca> | 2013-03-04 13:33:13 -0500 |
commit | 681f1a63961b04c68dc4e671513675e946f6f3f9 (patch) | |
tree | 9e282569aeaabe74dd784e8910282beddca3c098 /src | |
parent | bf30bf911562a11764c768f76e2490b51423ff91 (diff) | |
download | handlebars.js-681f1a63961b04c68dc4e671513675e946f6f3f9.zip handlebars.js-681f1a63961b04c68dc4e671513675e946f6f3f9.tar.gz handlebars.js-681f1a63961b04c68dc4e671513675e946f6f3f9.tar.bz2 |
Allow colon characters in identifiers
Issue #460
Diffstat (limited to 'src')
-rw-r--r-- | src/handlebars.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handlebars.l b/src/handlebars.l index 970aadd..d2f9963 100644 --- a/src/handlebars.l +++ b/src/handlebars.l @@ -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*/ } |