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