summaryrefslogtreecommitdiffstats
path: root/debian/patches/14-backport-support-for-long-options-in-perltidy.patch
blob: 02a56c0622ef1492c5979e8f79d459da107f6a7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
commit a283b6963421adb3acf087c9816614a9c0c4c214
Author: Ville Skyttä <ville.skytta@iki.fi>
Date:   Tue Apr 13 17:02:12 2021 +0300

    feat(perltidy): support long variants of arg completed options

diff --git a/completions/perltidy b/completions/perltidy
index 4404cf8..a6ee36b 100644
--- a/completions/perltidy
+++ b/completions/perltidy
@@ -16,25 +16,34 @@ _perltidy()
     esac
 
     case $cur in
-        -pro=*)
+        -pro=* | --profile=*)
             cur="${cur#*=}"
             _filedir
             return
             ;;
-        -ole=*)
+        -ole=* | --output-line-ending=*)
             COMPREPLY=($(compgen -W 'dos win mac unix' -- "${cur#*=}"))
             return
             ;;
-        -bt=* | -pt=* | -sbt=* | -bvt=* | -pvt=* | -sbvt=* | -bvtc=* | -pvtc=* | -sbvtc=* | \
-            -cti=* | -kbl=* | -vt=*)
+        -bt=* | --brace-tightness=* | -pt=* | --paren-tightness=* | \
+            -sbt=* | --square-bracket-tightness=* | \
+            -bvt=* | --brace-vertical-tightness=* | \
+            -pvt=* | --paren-vertical-tightness=* | \
+            -sbvt=* | --square-bracket-vertical-tightness=* | \
+            -bvtc=* | --brace-vertical-tightness-closing=* | \
+            -pvtc=* | --paren-vertical-tightness-closing=* | \
+            -sbvtc=* | --square-bracket-vertical-tightness-closing=* | \
+            -cti=* | --closing-token-indentation=* | \
+            -kbl=* | --keep-old-blank-lines=* | \
+            -vt=* | --vertical-tightness=*)
             COMPREPLY=($(compgen -W '0 1 2' -- "${cur#*=}"))
             return
             ;;
-        -vtc=*)
+        -vtc=* | --vertical-tightness-closing=*)
             COMPREPLY=($(compgen -W '0 1' -- "${cur#*=}"))
             return
             ;;
-        -cab=*)
+        -cab=* | --comma-arrow-breakpoints=*)
             COMPREPLY=($(compgen -W '0 1 2 3' -- "${cur#*=}"))
             return
             ;;