From e6b14fa934c3e34fa4d0f16e228f1ccae6372969 Mon Sep 17 00:00:00 2001 From: Alan Johnson Date: Tue, 25 Jan 2011 21:13:39 -0500 Subject: [PATCH] Put null byte on content match instead of [^] --- src/handlebars.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; }