#1138 Markdown mode should be based on HTML mode

This commit is contained in:
nightwing 2012-12-19 00:46:54 +04:00
commit 230bca6b1b

View file

@ -180,6 +180,15 @@ var MarkdownHighlightRules = function() {
regex : "^```",
next : "start"
}]);
var html = new HtmlHighlightRules().getRules();
for (var i in html) {
if (this.$rules[i])
this.$rules[i] = this.$rules[i].concat(html[i]);
else
this.$rules[i] = html[i];
}
};
oop.inherits(MarkdownHighlightRules, TextHighlightRules);