diff --git a/src/handlebars.l b/src/handlebars.l index dc63097c..665613ff 100644 --- a/src/handlebars.l +++ b/src/handlebars.l @@ -3,8 +3,8 @@ %% -[^]*?/("{{") { this.begin("mu"); if (yytext) return 'CONTENT'; } -[^]+ { return 'CONTENT'; } +(.|\n|\r)*?/("{{") { this.begin("mu"); if (yytext) return 'CONTENT'; } +(.|\n|\r)+ { return 'CONTENT'; } "{{>" { return 'OPEN_PARTIAL'; } "{{#" { return 'OPEN_BLOCK'; }