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() {
|
||||
this.highlighter = new SvgHighlightRules();
|
||||
this.$tokenizer = new Tokenizer(highlighter.getRules());
|
||||
this.$tokenizer = new Tokenizer(this.highlighter.getRules());
|
||||
this.$behaviour = new XmlBehaviour();
|
||||
|
||||
|
||||
this.$embeds = highlighter.getEmbeds();
|
||||
this.$embeds = this.highlighter.getEmbeds();
|
||||
this.createModeDelegates({
|
||||
"js-": JavaScriptMode
|
||||
});
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ var SvgHighlightRules = function() {
|
|||
token: "text",
|
||||
regex: "<\\/(?=script)",
|
||||
next: "tag"
|
||||
}], ["js-start"]);
|
||||
}]);
|
||||
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue