fix svg mode. fix #274

This commit is contained in:
Fabian Jakobs 2011-05-30 07:48:21 +00:00
commit 8e728d9d87
2 changed files with 3 additions and 3 deletions

View file

@ -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
});

View file

@ -75,7 +75,7 @@ var SvgHighlightRules = function() {
token: "text",
regex: "<\\/(?=script)",
next: "tag"
}], ["js-start"]);
}]);
};