Put null byte on content match instead of [^]
This commit is contained in:
+2
-2
@@ -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'; }
|
||||
|
||||
Reference in New Issue
Block a user