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.$rules["ejs-start"].unshift({
|
||||
this.embedRules(JavaScriptHighlightRules, "ejs-", [{
|
||||
token : "markup.list.meta.tag",
|
||||
regex : "-?" + end,
|
||||
next : "pop"
|
||||
|
@ -62,17 +60,7 @@ var EjsHighlightRules = function(start, end) {
|
|||
token: "comment",
|
||||
regex: "//.*?" + end,
|
||||
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();
|
||||
};
|
||||
|
|
Ładowanie…
Reference in New Issue