1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-04 18:25:45 +01:00

Load REPL styles when displaying help pages.

This commit is contained in:
Kris Maglione
2011-02-17 07:30:56 -05:00
parent c8cc18b440
commit b91cb26918

View File

@@ -186,11 +186,12 @@ var ConfigBase = Class("ConfigBase", {
"version"
],
helpStyles: /^(Help|StatusLine|REPL)|^(Boolean|Indicator|MoreMsg|Number|Object|Logo|Key(word)?|String)$/,
styleHelp: function styleHelp() {
if (!this.helpStyled) {
const { highlight } = require("highlight");
for (let k in keys(highlight.loaded))
if (/^(Help|StatusLine)|^(Boolean|Indicator|MoreMsg|Number|Logo|Key(word)?|String)$/.test(k))
if (this.helpStyles.test(k))
highlight.loaded[k] = true;
}
this.helpCSS = true;