diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-21 08:35:08 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-10-21 08:35:08 +0000 |
commit | 69e2ebabe80319e47dfaf72193e6759bc4a2d956 (patch) | |
tree | 0f798560b2f1cb0e2f42ee421e17db4724086fe5 /Completion | |
parent | add97d9b0040809882e17191a09a04c0db7fd5cc (diff) | |
download | zsh-69e2ebabe80319e47dfaf72193e6759bc4a2d956.tar.gz zsh-69e2ebabe80319e47dfaf72193e6759bc4a2d956.tar.xz zsh-69e2ebabe80319e47dfaf72193e6759bc4a2d956.zip |
zsh-workers/8352
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Base/_arguments | 5 | ||||
-rw-r--r-- | Completion/User/_bison | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Completion/Base/_arguments b/Completion/Base/_arguments index 0d4946285..a948d27e4 100644 --- a/Completion/Base/_arguments +++ b/Completion/Base/_arguments @@ -5,7 +5,7 @@ setopt localoptions extendedglob -local long cmd="$words[1]" descr +local long cmd="$words[1]" descr mesg long=$argv[(I)--] if (( long )); then @@ -189,7 +189,7 @@ if comparguments -i "$compconfig[autodescribe_options]" "$@"; then # An empty action means that we should just display a message. [[ -n "$matched" ]] && compadd -n -Q -S '' -s "$SUFFIX" - "$PREFIX" - _message "$descr" + mesg="$descr" elif [[ "$action" = \(\(*\)\) ]]; then @@ -286,6 +286,7 @@ if comparguments -i "$compconfig[autodescribe_options]" "$@"; then [[ -n "$aret" ]] && return 300 + [[ -n "$mesg" ]] && _message "$mesg" [[ -n "$noargs" ]] && _message "$noargs" # Set the return value. diff --git a/Completion/User/_bison b/Completion/User/_bison index 000235f6f..2fd5b3827 100644 --- a/Completion/User/_bison +++ b/Completion/User/_bison @@ -14,7 +14,7 @@ _arguments -s \ '(--version)-V[show version]' \ '(--help)-h[show help]' \ '(--yacc --fixed-output-file)-y[imitate yacc'"'"'s output file convention]' \ - ':input file:_files -g \*.\(\#i\)\(bison\|yacc\)' \ + ':input file:_files -g \*.\(\#i\)\(bison\|yacc\|y\)' \ -- \ '*=outfile:parser file name:_files' \ '*file-prefix=prefix:output file prefix:' \ |