IE doesn't like negated empty character classes.

Changing this to match the "dot" character class wouldn't work, though, because . doesn't match invisible whitespace like newlines, so we need to include those specifically.
This commit is contained in:
David Stone
2011-01-19 16:22:28 -08:00
parent 8ab1ffae17
commit dd4c03d0e3
+2 -2
View File
@@ -3,8 +3,8 @@
%%
[^]*?/("{{") { this.begin("mu"); if (yytext) return 'CONTENT'; }
[^]+ { return 'CONTENT'; }
(.|\n|\r)*?/("{{") { this.begin("mu"); if (yytext) return 'CONTENT'; }
(.|\n|\r)+ { return 'CONTENT'; }
<mu>"{{>" { return 'OPEN_PARTIAL'; }
<mu>"{{#" { return 'OPEN_BLOCK'; }