zsh-completions
zsh-completions copied to clipboard
Example under _regex_arguments section is different from the explanation for the example itself?
https://github.com/zsh-users/zsh-completions/blob/d24f58d2f187a72697aa2781a730f65732cb2f6b/zsh-completions-howto.org?plain=1#L291-L299
The explanation for the example and the example itself seems a bit different?
The example seems to say that we should match:
- Any non-empty command
- Any branch below
- word1(a|b|c)
- word11(a|b|c)
- Any branch below
- word2(a|b|c)
- word22(a|b|c)
- Any branch below
But the explanation says something else, like the second word can be word2(a|b|c) or a filename.