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