fixed highlighting in HTML mode of end JS
This commit is contained in:
parent
e0c20fd06d
commit
3ed57c6ed4
1 changed files with 4 additions and 0 deletions
|
|
@ -116,6 +116,10 @@ ace.mode.HtmlHighlightRules = function() {
|
||||||
var jsRules = new ace.mode.JavaScriptHighlightRules().getRules();
|
var jsRules = new ace.mode.JavaScriptHighlightRules().getRules();
|
||||||
this.addRules(jsRules, "js-");
|
this.addRules(jsRules, "js-");
|
||||||
this.$rules["js-start"].unshift({
|
this.$rules["js-start"].unshift({
|
||||||
|
token: "comment",
|
||||||
|
regex: "\\/\\/.*(?=<\\/script>)",
|
||||||
|
next: "tag"
|
||||||
|
}, {
|
||||||
token: "text",
|
token: "text",
|
||||||
regex: "<\\/(?=script)",
|
regex: "<\\/(?=script)",
|
||||||
next: "tag"
|
next: "tag"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue