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:
@@ -77,6 +77,13 @@
|
||||
the form of <tt><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><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><args[1]<</tt>.
|
||||
</p>
|
||||
<p>
|
||||
Any substring enclosed by <em><tt><{</tt></em> and <em><tt>}></tt></em>
|
||||
is automatically elided if any of the contained macros aren't currently
|
||||
|
||||
Reference in New Issue
Block a user