This commit is contained in:
Joe Bloggs 2014-03-27 14:13:54 +00:00
parent 57886bb812
commit 90d9164d6c
1 changed files with 3 additions and 1 deletions

View File

@ -240,7 +240,9 @@ _cmd "$@"
The OTHER_ARGS should be sequences of specifications for matching & completing words on the command line. The OTHER_ARGS should be sequences of specifications for matching & completing words on the command line.
These sequences can be separated by '|' to represent alternative sequences of words. These sequences can be separated by '|' to represent alternative sequences of words.
You can use bracketing to arbitrary depth to specify alternate subsequences. You can use bracketing to arbitrary depth to specify alternate subsequences, but the brackets must be quoted
like this \( \) or '(' ')'.
For example: For example:
#+BEGIN_SRC sh #+BEGIN_SRC sh
_regex_arguments _cmd SEQ1 '|' SEQ2 \( SEQ2a '|' SEQ2b \) _regex_arguments _cmd SEQ1 '|' SEQ2 \( SEQ2a '|' SEQ2b \)