diff options
author | Peter Stephenson <pws@zsh.org> | 2015-04-28 09:27:37 +0100 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-04-28 09:27:37 +0100 |
commit | 8b4c46fb3f85148ca99b3535f755547560b89bc9 (patch) | |
tree | 6551512b48d9c7fcd54ec49bbd26b122bb7d7e0f /Completion/Unix/Command/_make | |
parent | df5115a741561d251b30926ce09486737da1e8da (diff) | |
download | zsh-8b4c46fb3f85148ca99b3535f755547560b89bc9.tar.gz zsh-8b4c46fb3f85148ca99b3535f755547560b89bc9.tar.xz zsh-8b4c46fb3f85148ca99b3535f755547560b89bc9.zip |
34980: in completion match new Makefile assignment forms
Diffstat (limited to 'Completion/Unix/Command/_make')
-rw-r--r-- | Completion/Unix/Command/_make | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make index e5a513f64..225c0af85 100644 --- a/Completion/Unix/Command/_make +++ b/Completion/Unix/Command/_make @@ -64,18 +64,18 @@ _make-parseMakefile () { while read input do case "$input " in - # VARIABLE = value - ([[:alnum:]][[:alnum:]_]#[ $TAB]#=*) - var=${input%%[ $TAB]#=*} + # VARIABLE = value OR VARIABLE ?= value + ([[:alnum:]][[:alnum:]_]#[ $TAB]#(\?|)=*) + var=${input%%[ $TAB]#(\?|)=*} val=${input#*=} val=${val##[ $TAB]#} VARIABLES[$var]=$val ;; - # VARIABLE := value + # VARIABLE := value OR VARIABLE ::= value # Evaluated immediately - ([[:alnum:]][[:alnum:]_]#[ $TAB]#:=*) - var=${input%%[ $TAB]#:=*} + ([[:alnum:]][[:alnum:]_]#[ $TAB]#:(:|)=*) + var=${input%%[ $TAB]#:(:|)=*} val=${input#*=} val=${val##[ $TAB]#} val=$(_make-expandVars $val) |