1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-14 06:45:51 +01:00

More group tweaks: colors- prefix for color scheme groups. :group default to return to the default group for your script.

--HG--
branch : groups
This commit is contained in:
Kris Maglione
2011-02-06 11:21:58 -05:00
parent f1db6ae5c1
commit 4a43477980
4 changed files with 22 additions and 10 deletions

View File

@@ -993,7 +993,7 @@ unlet s:cpo_save
modules.JavaScript.setCompleter([File, File.expandPath],
[function (context, obj, args) {
context.quote[2] = "";
completion.file(context, true);
modules.completion.file(context, true);
}]);
},

View File

@@ -1353,7 +1353,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
* @param {string} string The string to search.
* @param {number} lastIndex The index at which to begin searching. @optional
*/
iterate: function iterate(regexp, string, lastIndex) {
iterate: function iterate(regexp, string, lastIndex) iter(function () {
regexp.lastIndex = lastIndex = lastIndex || 0;
let match;
while (match = regexp.exec(string)) {
@@ -1363,7 +1363,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
if (match[0].length == 0 || !regexp.global)
break;
}
}
}())
}),
rehash: function (args) {