1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 04:35:46 +01:00

Docs and so forth for macro-string/compileMacro changes that snuck into a previous commit.

This commit is contained in:
Kris Maglione
2010-12-29 11:40:53 -05:00
parent abe2c666b6
commit 36450a355f
3 changed files with 13 additions and 12 deletions

View File

@@ -303,9 +303,9 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
let re = util.regexp(<![CDATA[
([^]*?) // 1
(?:
(<\[) | // 2
(<\{) | // 2
(< ((?:[a-z]-)?[a-z-]*?) >) | // 3 4
(\]>) // 5
(\}>) // 5
)
]]>, "giy");
while (match = re.exec(macro)) {
@@ -348,7 +348,7 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
if (end < macro.length)
stack.top.elements.push(macro.substr(end));
util.assert(stack.length === 1, "Unmatched <[ in macro");
util.assert(stack.length === 1, "Unmatched <{ in macro");
return stack.top;
},