Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH 3/3] completion: make: fix whitespaces



Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx>
---
 Completion/Unix/Command/_make | 60 +++++++++++++++++------------------
 1 file changed, 30 insertions(+), 30 deletions(-)

diff --git a/Completion/Unix/Command/_make b/Completion/Unix/Command/_make
index 94747ae58..0fd0b3270 100644
--- a/Completion/Unix/Command/_make
+++ b/Completion/Unix/Command/_make
@@ -12,35 +12,35 @@ _make-expandVars() {
 
     case $rest[2] in
       ($)	    # '$$'. may not appear in target and variable's value
-	front=$front\$\$
-	rest=${rest[3,-1]}
-	continue
-	;;
+        front=$front\$\$
+        rest=${rest[3,-1]}
+        continue
+        ;;
       (\()	    # Variable of the form $(foobar)
-	open='('
-	close=')'
-	;;
+        open='('
+        close=')'
+        ;;
       ({)	    # ${foobar}
-	open='{'
-	close='}'
-	;;
+        open='{'
+        close='}'
+        ;;
       ([[:alpha:]]) # $foobar. This is exactly $(f)oobar.
-	open=''
-	close=''
-	var=$rest[2]
-	;;
+        open=''
+        close=''
+        var=$rest[2]
+        ;;
       (*)	    # bad parameter name
-	print -- $front$rest
-	return 1
-	;;
+        print -- $front$rest
+        return 1
+        ;;
     esac
 
     if [[ -n $open ]]; then
       if [[ $rest == \$$open(#b)([[:alnum:]_]##)(#B)$close* ]]; then
-	var=$match
+        var=$match
       else  # unmatched () or {}, or bad parameter name
-	print -- $front$rest
-	return 1
+        print -- $front$rest
+        return 1
       fi
     fi
 
@@ -49,17 +49,17 @@ _make-expandVars() {
       val=${VAR_ARGS[$var]}
     else
       if [[ -n $opt_args[(I)(-e|--environment-overrides)] ]]; then
-	if [[ $parameters[$var] == scalar-export* ]]; then
-	  val=${(P)var}
-	elif [[ -n ${VARIABLES[(i)$var]} ]]; then
-	  val=${VARIABLES[$var]}
-	fi
+        if [[ $parameters[$var] == scalar-export* ]]; then
+          val=${(P)var}
+        elif [[ -n ${VARIABLES[(i)$var]} ]]; then
+          val=${VARIABLES[$var]}
+        fi
       else
-	if [[ -n ${VARIABLES[(i)$var]} ]]; then
-	  val=${VARIABLES[$var]}
-	elif [[ $parameters[$var] == scalar-export* ]]; then
-	  val=${(P)var}
-	fi
+        if [[ -n ${VARIABLES[(i)$var]} ]]; then
+          val=${VARIABLES[$var]}
+        elif [[ $parameters[$var] == scalar-export* ]]; then
+          val=${(P)var}
+        fi
       fi
     fi
     rest=${rest//\$$open$var$close/$val}
-- 
2.37.1.225.gfa48d685d2





Messages sorted by: Reverse Date, Date, Thread, Author