1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00

40162: _arguments support for a match spec in combination with sets

This commit is contained in:
Oliver Kiddle 2016-12-22 16:12:42 +01:00
parent fa88f57c06
commit 02eb1595e8
3 changed files with 11 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2016-12-22 Oliver Kiddle <opk@zsh.org>
* 40162: Src/Zle/computil.c, Test/Y03arguments.ztst: _arguments
support for a match spec in combination with sets
2016-12-22 Daniel Shahaf <d.s@daniel.shahaf.name>
* unposted: Config/version.mk: Post-release version bump to

View file

@ -1288,7 +1288,7 @@ parse_cadef(char *nam, char **args)
ret->ndopts = ndopts;
ret->nodopts = nodopts;
set_cadef_opts(ret);
ret = ret->snext = alloc_cadef(NULL, single, NULL, nonarg, flags);
ret = ret->snext = alloc_cadef(NULL, single, match, nonarg, flags);
optp = &(ret->opts);
nopts = ndopts = nodopts = 0;
anum = 1;

View file

@ -277,6 +277,11 @@
>line: {tst j}{}
>line: {tst -y }{}
tst_arguments -M 'm:{j}={y}' -y -n - set1 -i - set2 -k
comptest $'tst -k -j\t'
0:matcher in combination with sets (implies separate cadef structure)
>line: {tst -k -y }{}
tst_arguments -x :word
comptest $'tst -- -\t'
0:option after --