diff options
Diffstat (limited to 'src/handlebars.l')
-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 4c3c304..e9de102 100644 --- a/src/handlebars.l +++ b/src/handlebars.l @@ -120,7 +120,7 @@ ID [^\s!"#%-,\.\/;->@\[-\^`\{-~]+/{LOOKAHEAD} <mu>{ID} return 'ID'; -<mu>'['[^\]]*']' return 'ID'; +<mu>'['('\\]'|[^\]])*']' yytext = yytext.replace(/\\([\\\]])/g,'$1'); return 'ID'; <mu>. return 'INVALID'; <INITIAL,mu><<EOF>> return 'EOF'; |