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

Add array indexing to macro-string processing. Checkin Minefield crash workaround that was supposed to have been checked in yesterday.

This commit is contained in:
Kris Maglione
2011-05-27 19:48:30 -04:00
parent 98671742c3
commit 8459d93e0b
4 changed files with 39 additions and 14 deletions

View File

@@ -77,6 +77,13 @@
the form of <tt>&lt;e-<a>name</a>></tt>, its value is never shown but may be
used to test whether the given parameter is empty.
</p>
<p>
Array elements, such as in the the <tt>&lt;args></tt> parameter
of <ex>:command</ex> macros, may be accessed by appending
<tt>[<a>n</a>]</tt>, where <a>n</a> is the one-based array
index, to the macro name. The first argument of a command is
therefore accessed with <tt>&lt;args[1]&lt;</tt>.
</p>
<p>
Any substring enclosed by <em><tt>&lt;{</tt></em> and <em><tt>}></tt></em>
is automatically elided if any of the contained macros aren't currently