mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 06:20:55 +01:00
remove that -T option to compdef again and instead use comma-separated sub-contexts both for function and style lookup (16819)
This commit is contained in:
parent
799b34d817
commit
45f9a36216
23 changed files with 291 additions and 310 deletions
|
|
@ -1,13 +1,13 @@
|
|||
#compdef gcc g++ -T values LDFLAGS CFLAGS CPPFLAGS
|
||||
#compdef gcc g++ -value-,LDFLAGS,-default- -value-,CFLAGS,-default- -value-,CPPFLAGS,-default-
|
||||
|
||||
local curcontext="$curcontext" state line ret=1 expl args args2
|
||||
typeset -A opt_args
|
||||
|
||||
if [[ "$comptype" = values ]]; then
|
||||
if [[ "$service" = -value-* ]]; then
|
||||
compset -q
|
||||
words=( fake "$words[@]" )
|
||||
(( CURRENT++ ))
|
||||
if [[ "$service" = LDFLAGS ]]; then
|
||||
if [[ "$service" = *LDFLAGS ]]; then
|
||||
args2=( '-R:runtime path:->rundir' )
|
||||
else
|
||||
args2=()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue