kopia lustrzana https://github.com/c9/core
fix ejs highlighting
rodzic
83b1f0a2ef
commit
0b14bcf31e
|
@ -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();
|
||||||
};
|
};
|
||||||
|
|
Ładowanie…
Reference in New Issue