mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Merge pull request +8995 from c9/fix-ejs-mode
[Trivial] fix ejs highlighting
This commit is contained in:
commit
de86a20fda
16
node_modules/ace/lib/ace/mode/ejs.js
generated
vendored
16
node_modules/ace/lib/ace/mode/ejs.js
generated
vendored
@ -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();
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user