Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _prompt: two useless ':*:'
- X-seq: zsh-workers 8836
- From: Alexandre Duret-Lutz <alexandre.duret@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: PATCH: _prompt: two useless ':*:'
- Date: 01 Dec 1999 12:15:48 +0000
- In-reply-to: Sven Wischnowsky's message of "Fri, 26 Nov 1999 09:46:13 +0100 (MET)"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Sender: aduret@xxxxxxxxxxx
~ % prompt -<TAB>
~ % prompt -_arguments: bad pattern: adam1):*: [253]
parse_cadef/parse_caarg won't split the action at colons once the
first `:*pattern:' is encountered in a description, or for description
of normal/rest arguments (starting with `n:', `*:' or `:').
Should this be said en zshcompsys.1 ? I guess this means we can
write `:foo:((a\:bar b\:baz))' without needing to escape colons in
such cases (I didn't try).
--- Completion/User/_prompt.old Wed Dec 1 09:43:21 1999
+++ Completion/User/_prompt Wed Dec 1 11:43:24 1999
@@ -2,6 +2,8 @@
_arguments -s \
'-l[list themes]:*:' \
+ '-c[show selected theme]:*:' \
"-h[help]::prompt theme:($prompt_themes):*:" \
- "-p[preview theme(s)]:*:prompt theme:($prompt_themes):*:" \
- {-s'[set and save theme]','*'}":prompt themes:($prompt_themes):*:"
+ "-p[preview theme(s)]:*:prompt theme:($prompt_themes)" \
+ "-s[set and save theme]:prompt theme:($prompt_themes):*:" \
+ ":prompt theme:($prompt_themes)"
--
Alexandre Duret-Lutz
Messages sorted by:
Reverse Date,
Date,
Thread,
Author