mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 15:22:26 +01:00
whitespace fixes
This commit is contained in:
@@ -179,7 +179,7 @@ function Commands() //{{{
|
|||||||
return NaN;
|
return NaN;
|
||||||
}
|
}
|
||||||
|
|
||||||
function quote(q, list) list.reduce(function (acc, [k,v]) {
|
function quote(q, list) list.reduce(function (acc, [k, v]) {
|
||||||
v = "\\" + (v || k);
|
v = "\\" + (v || k);
|
||||||
return function (str) acc(String.replace(str, k, v, "g"))
|
return function (str) acc(String.replace(str, k, v, "g"))
|
||||||
}, function (val) q + val + q);
|
}, function (val) q + val + q);
|
||||||
@@ -783,7 +783,7 @@ function Commands() //{{{
|
|||||||
arguments: [cmd.name],
|
arguments: [cmd.name],
|
||||||
literalArg: cmd.replacementText
|
literalArg: cmd.replacementText
|
||||||
}
|
}
|
||||||
for ([k,cmd] in Iterator(exCommands))
|
for ([k, cmd] in Iterator(exCommands))
|
||||||
if (cmd.isUserCommand && cmd.replacementText)
|
if (cmd.isUserCommand && cmd.replacementText)
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -95,7 +95,7 @@ function Highlights(name, store, serial)
|
|||||||
Highlight.prototype.toString = function () "Highlight(" + this.class + ")\n\t" + [k + ": " + util.escapeString(v || "undefined") for ([k, v] in this)].join("\n\t");
|
Highlight.prototype.toString = function () "Highlight(" + this.class + ")\n\t" + [k + ": " + util.escapeString(v || "undefined") for ([k, v] in this)].join("\n\t");
|
||||||
|
|
||||||
function keys() [k for ([k, v] in Iterator(highlight))].sort();
|
function keys() [k for ([k, v] in Iterator(highlight))].sort();
|
||||||
this.__iterator__ = function () (highlight[v] for ([k,v] in Iterator(keys())));
|
this.__iterator__ = function () (highlight[v] for ([k, v] in Iterator(keys())));
|
||||||
|
|
||||||
this.get = function (k) highlight[k];
|
this.get = function (k) highlight[k];
|
||||||
this.set = function (key, newStyle, force, append)
|
this.set = function (key, newStyle, force, append)
|
||||||
|
|||||||
Reference in New Issue
Block a user