This commit is contained in:
Joe Bloggs 2014-03-27 17:09:45 +00:00
parent aaca6eddc2
commit 9323810307
1 changed files with 3 additions and 1 deletions

View File

@ -254,7 +254,9 @@ _cmd "$@"
this specifies a command line matching either SEQ1, or SEQ2 followed by SEQ2a or SEQ2b. this specifies a command line matching either SEQ1, or SEQ2 followed by SEQ2a or SEQ2b.
Each specification in a sequence must contain a / PATTERN/ part at the start followed by an optional ':TAG:DESCRIPTION:ACTION' Each specification in a sequence must contain a / PATTERN/ part at the start followed by an optional ':TAG:DESCRIPTION:ACTION'
part. Each PATTERN is a regular expression to match a word on the command line. These patterns are processed sequentially part.
Each PATTERN is a regular expression to match a word on the command line. These patterns are processed sequentially
until we reach a pattern that doesn't match at which point any corresponding ACTION is performed to obtain completions until we reach a pattern that doesn't match at which point any corresponding ACTION is performed to obtain completions
for that word. Note that there needs to be a pattern to match the initial command itself. for that word. Note that there needs to be a pattern to match the initial command itself.
See below for further explanation about PATTERNs. See below for further explanation about PATTERNs.