mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-18 03:11:15 +02:00
Don't output a target "VAR" for a line of the form "VAR := VALUE".
This commit is contained in:
parent
973a53300b
commit
f12d3cca9f
1 changed files with 4 additions and 4 deletions
|
@ -27,14 +27,14 @@ else
|
||||||
if [[ $is_gnu = gnu ]] &&
|
if [[ $is_gnu = gnu ]] &&
|
||||||
zstyle -t ":completion:${curcontext}:targets" call-command; then
|
zstyle -t ":completion:${curcontext}:targets" call-command; then
|
||||||
if [[ -n $useperl ]]; then
|
if [[ -n $useperl ]]; then
|
||||||
cmdargs=(perl -F: -ane '/^[a-zA-Z0-9][^\/\t=]+:/ && print "$F[0]\n"')
|
cmdargs=(perl -F: -ane '/^[a-zA-Z0-9][^\/\t=]+:([^=]|$)/ && print "$F[0]\n"')
|
||||||
else
|
else
|
||||||
cmdargs=(awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}' FS=:)
|
cmdargs=(awk '/^[a-zA-Z0-9][^\/\t=]+:([^=]|$)/ {print $1}' FS=:)
|
||||||
fi
|
fi
|
||||||
tmp=( $(_call_program targets "$words[1]" -nsp --no-print-directory -f "$file" .PHONY 2> /dev/null | $cmdargs) )
|
tmp=( $(_call_program targets "$words[1]" -nsp --no-print-directory -f "$file" .PHONY 2> /dev/null | $cmdargs) )
|
||||||
elif [[ -n $useperl ]]; then
|
elif [[ -n $useperl ]]; then
|
||||||
tmp=(
|
tmp=(
|
||||||
$(perl -ne '@matches = /^(?:([a-zA-Z0-9]+[^\/\t=\s]+)\s*)+:/ and
|
$(perl -ne '@matches = /^(?:([a-zA-Z0-9]+[^\/\t=\s]+)\s*)+:([^=]|$)/ and
|
||||||
print join(" ", @matches), "\n";
|
print join(" ", @matches), "\n";
|
||||||
if (/^\.include\s+\<bsd\.port\.(subdir\.|pre\.)?mk>/ ||
|
if (/^\.include\s+\<bsd\.port\.(subdir\.|pre\.)?mk>/ ||
|
||||||
/^\.include\s+\".*mk\/bsd\.pkg\.(subdir\.)?mk\"/) {
|
/^\.include\s+\".*mk\/bsd\.pkg\.(subdir\.)?mk\"/) {
|
||||||
|
@ -44,7 +44,7 @@ if (/^\.include\s+\<bsd\.port\.(subdir\.|pre\.)?mk>/ ||
|
||||||
)
|
)
|
||||||
else
|
else
|
||||||
tmp=(
|
tmp=(
|
||||||
$(awk '/^[a-zA-Z0-9][^\/\t=]+:/ {print $1}
|
$(awk '/^[a-zA-Z0-9][^\/\t=]+:([^=]|$)/ {print $1}
|
||||||
/^\.include *<bsd\.port\.(subdir\.|pre\.)?mk>/ || /^\.include *".*mk\/bsd\.pkg\.(subdir\.)?mk"/ {
|
/^\.include *<bsd\.port\.(subdir\.|pre\.)?mk>/ || /^\.include *".*mk\/bsd\.pkg\.(subdir\.)?mk"/ {
|
||||||
print "fetch fetch-list extract patch configure build install reinstall deinstall package describe checkpatch checksum makesum" }' \
|
print "fetch fetch-list extract patch configure build install reinstall deinstall package describe checkpatch checksum makesum" }' \
|
||||||
FS=: $file)
|
FS=: $file)
|
||||||
|
|
Loading…
Reference in a new issue