Skip to content

Commit 1360ba9

Browse files
committed
perl: indentation fixes
1 parent 8eba6d0 commit 1360ba9

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

completions/perl

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -28,44 +28,44 @@ _perl()
2828
optSuffix=-S/
2929
prefix=$prev
3030

31-
case $prev in
32-
-*[DeEiFl])
33-
return
34-
;;
35-
-*[Ix])
36-
local IFS=$'\n'
37-
compopt -o filenames
38-
COMPREPLY=( $(compgen -d $optPrefix $optSuffix -- "$cur") )
39-
return
40-
;;
41-
-*[mM])
42-
temp="${cur#-}"
43-
prefix+="${cur%$temp}"
44-
cur="$temp"
45-
_perl_helper modules $1
46-
return
47-
;;
48-
-*V)
49-
if [[ $cur == :* ]]; then
50-
temp="${cur##+(:)}"
51-
prefix+="${cur%$temp}"
31+
case $prev in
32+
-*[DeEiFl])
33+
return
34+
;;
35+
-*[Ix])
5236
local IFS=$'\n'
53-
COMPREPLY=( $(compgen -P "$prefix" -W \
54-
'$($1 -MConfig -e "print join \"\\n\",
55-
keys %Config::Config" 2>/dev/null)' -- "$temp") )
56-
__ltrim_colon_completions "$prefix$temp"
57-
fi
58-
return
59-
;;
60-
-*d|-*dt)
61-
if [[ $cur == :* ]]; then
62-
temp="${cur#:}"
63-
prefix="$prefix${cur%$temp}"
64-
cur="Devel::$temp"
37+
compopt -o filenames
38+
COMPREPLY=( $(compgen -d $optPrefix $optSuffix -- "$cur") )
39+
return
40+
;;
41+
-*[mM])
42+
temp="${cur#-}"
43+
prefix+="${cur%$temp}"
44+
cur="$temp"
6545
_perl_helper modules $1
66-
fi
67-
;;
68-
esac
46+
return
47+
;;
48+
-*V)
49+
if [[ $cur == :* ]]; then
50+
temp="${cur##+(:)}"
51+
prefix+="${cur%$temp}"
52+
local IFS=$'\n'
53+
COMPREPLY=( $(compgen -P "$prefix" -W \
54+
'$($1 -MConfig -e "print join \"\\n\",
55+
keys %Config::Config" 2>/dev/null)' -- "$temp") )
56+
__ltrim_colon_completions "$prefix$temp"
57+
fi
58+
return
59+
;;
60+
-*d|-*dt)
61+
if [[ $cur == :* ]]; then
62+
temp="${cur#:}"
63+
prefix="$prefix${cur%$temp}"
64+
cur="Devel::$temp"
65+
_perl_helper modules $1
66+
fi
67+
;;
68+
esac
6969

7070
# Unlike other perl options, having a space between the `-e' and
7171
# `-E' options and their arguments, e.g. `perl -e "exit 2"', is

0 commit comments

Comments
 (0)