Put null byte on content match instead of [^]

This commit is contained in:
Alan Johnson
2011-01-25 21:13:39 -05:00
parent 116a8a5202
commit e6b14fa934
+2 -2
View File
@@ -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'; }
<mu>"{{>" { return 'OPEN_PARTIAL'; }
<mu>"{{#" { return 'OPEN_BLOCK'; }