about summary refs log tree commit diff
path: root/Completion/Zsh/Type/_delimiters
blob: bb5bba8d07994fc7bc38a3b05ae073f7389691ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#autoload

# Simple function to offer delimiters for modifiers and qualifers.
# Single argument is tag to use.

local expl
local -a list

zstyle -a ":completion:${curcontext}:$1" delimiters list ||
  list=(: + / - %)

if (( ${#list} )); then
  _wanted delimiters expl delimiter compadd -S '' -a list
else
  _message delimiter
fi