1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 15:02:26 +01:00

whitespace fixes

This commit is contained in:
Doug Kearns
2008-11-13 15:45:30 +00:00
parent 551417f410
commit 074df859c5
3 changed files with 5 additions and 5 deletions

View File

@@ -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)
] ]
}); });

View File

@@ -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)