fix svg mode. fix #274
This commit is contained in:
parent
16cb148039
commit
8e728d9d87
2 changed files with 3 additions and 3 deletions
|
|
@ -46,11 +46,11 @@ var XmlBehaviour = require("ace/mode/behaviour/xml").XmlBehaviour;
|
||||||
|
|
||||||
var Mode = function() {
|
var Mode = function() {
|
||||||
this.highlighter = new SvgHighlightRules();
|
this.highlighter = new SvgHighlightRules();
|
||||||
this.$tokenizer = new Tokenizer(highlighter.getRules());
|
this.$tokenizer = new Tokenizer(this.highlighter.getRules());
|
||||||
this.$behaviour = new XmlBehaviour();
|
this.$behaviour = new XmlBehaviour();
|
||||||
|
|
||||||
|
|
||||||
this.$embeds = highlighter.getEmbeds();
|
this.$embeds = this.highlighter.getEmbeds();
|
||||||
this.createModeDelegates({
|
this.createModeDelegates({
|
||||||
"js-": JavaScriptMode
|
"js-": JavaScriptMode
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ var SvgHighlightRules = function() {
|
||||||
token: "text",
|
token: "text",
|
||||||
regex: "<\\/(?=script)",
|
regex: "<\\/(?=script)",
|
||||||
next: "tag"
|
next: "tag"
|
||||||
}], ["js-start"]);
|
}]);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue