diff options
author | Peter Wagenet <peter.wagenet@gmail.com> | 2012-02-08 20:25:15 -0800 |
---|---|---|
committer | Peter Wagenet <peter.wagenet@gmail.com> | 2012-02-08 20:49:50 -0800 |
commit | 0b97fea56faaf48de1b6aa1a67b3796c15a45d01 (patch) | |
tree | 7fe2bc6ef301d6edc5f6ac9c44f95474911d5499 /src | |
parent | 2ea95ca08d47bb16ed79e8481c50a1c074dd676e (diff) | |
download | handlebars.js-0b97fea56faaf48de1b6aa1a67b3796c15a45d01.zip handlebars.js-0b97fea56faaf48de1b6aa1a67b3796c15a45d01.tar.gz handlebars.js-0b97fea56faaf48de1b6aa1a67b3796c15a45d01.tar.bz2 |
Fixed error in lexer
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 e47c5b1..592fd5c 100644 --- a/src/handlebars.l +++ b/src/handlebars.l @@ -35,7 +35,7 @@ <mu>"false"/[}\s] { return 'BOOLEAN'; } <mu>[0-9]+/[}\s] { return 'INTEGER'; } <mu>[a-zA-Z0-9_$-]+/[=}\s\/.] { return 'ID'; } -<mu>\[[^\]]*\] { yytext = yytext.substr(1, yyleng-2); return 'ID'; } +<mu>'['[^\]]*']' { yytext = yytext.substr(1, yyleng-2); return 'ID'; } <mu>. { return 'INVALID'; } <INITIAL,mu><<EOF>> { return 'EOF'; } |