var SvgHighlightRules = function() { XmlHighlightRules.call(this); this.$rules.start.splice(3, 0, { token : "text", regex : "<(?=\s*script)", next : "script" }); this.$rules.script = [{ token : "text", regex : ">", next : "js-start" }, { token : "keyword", regex : "[-_a-zA-Z0-9:]+" }, { token : "text", regex : "\\s+" }, { token : "string", regex : '".*?"' }, { token : "string", regex : "'.*?'" }]; var jsRules = new JavaScriptHighlightRules().getRules(); this.addRules(jsRules, "js-"); this.$rules["js-start"].unshift({ token: "comment", regex: "\\/\\/.*(?=<\\/script>)", next: "tag" }, { token: "text", regex: "<\\/(?=script)", next: "tag" }); };
var TEIHighlightRules = function() { XmlHighlightRules.call(this); };