fix ejs highlighting

pull/142/head
nightwing 2015-08-31 14:33:21 +04:00
rodzic 83b1f0a2ef
commit 0b14bcf31e
1 zmienionych plików z 2 dodań i 14 usunięć

16
node_modules/ace/lib/ace/mode/ejs.js wygenerowano vendored
Wyświetl plik

@ -52,9 +52,7 @@ var EjsHighlightRules = function(start, end) {
}); });
} }
this.embedRules(JavaScriptHighlightRules, "ejs-"); this.embedRules(JavaScriptHighlightRules, "ejs-", [{
this.$rules["ejs-start"].unshift({
token : "markup.list.meta.tag", token : "markup.list.meta.tag",
regex : "-?" + end, regex : "-?" + end,
next : "pop" next : "pop"
@ -62,17 +60,7 @@ var EjsHighlightRules = function(start, end) {
token: "comment", token: "comment",
regex: "//.*?" + end, regex: "//.*?" + end,
next: "pop" next: "pop"
}); }]);
this.$rules["ejs-no_regex"].unshift({
token : "markup.list.meta.tag",
regex : "-?" + end,
next : "pop"
}, {
token: "comment",
regex: "//.*?" + end,
next: "pop"
});
this.normalizeRules(); this.normalizeRules();
}; };