fixed highlighting in HTML mode of end JS

This commit is contained in:
mikedeboer 2010-09-17 12:37:23 +02:00
commit 3ed57c6ed4

View file

@ -116,6 +116,10 @@ ace.mode.HtmlHighlightRules = function() {
var jsRules = new ace.mode.JavaScriptHighlightRules().getRules();
this.addRules(jsRules, "js-");
this.$rules["js-start"].unshift({
token: "comment",
regex: "\\/\\/.*(?=<\\/script>)",
next: "tag"
}, {
token: "text",
regex: "<\\/(?=script)",
next: "tag"