summaryrefslogtreecommitdiffstats
path: root/src/handlebars.l
diff options
context:
space:
mode:
Diffstat (limited to 'src/handlebars.l')
-rw-r--r--src/handlebars.l2
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';