-
Notifications
You must be signed in to change notification settings - Fork 12
/
.perltidyrc
89 lines (87 loc) · 2.08 KB
/
.perltidyrc
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# See how far we get in getting perltidy to do the *only* right thing: my way
# https://perltidy.sourceforge.net/perltidy.html
--noblanks-before-comments
--block-brace-tightness=0
--brace-tightness=2
--brace-vertical-tightness=2
--closing-token-indentation=3
--continuation-indentation=4
--cuddled-paren-brace
--entab-leading-whitespace=8
#--extended-block-tightness-list=k
#--noindent-block-comments
--indent-closing-brace
--indent-columns=4
# try with and without this:
#--line-up-parentheses
--maximum-line-length=80
--opening-brace-always-on-right
--opening-hash-brace-right
--opening-paren-right
--opening-square-bracket-right
--opening-sub-brace-on-new-line
--nooutdent-long-comments
--nooutdent-long-quotes
--nooutdent-long-lines
--paren-tightness=2
--paren-vertical-tightness=2
--nospace-for-semicolon
--space-function-paren
--space-keyword-paren
--space-prototype-paren=2
--square-bracket-tightness=2
--square-bracket-vertical-tightness=2
--stack-closing-hash-brace
--stack-closing-paren
--stack-closing-square-bracket
--stack-opening-hash-brace
--stack-opening-paren
--stack-opening-square-bracket
--static-block-comment-prefix="^#"
--static-side-comments
--valign-if-unless
# try with and without some or all of these
#--want-break-after=". : || && and or"
# c comment Green4 / italic # foo
-hcc=008b00 -hic
# cm comma ,
-hccm=000000
# co colon :
-hcco=000000
# h here-doc-target <<FOO
-hch=cd5555 -hbh
# hh here-doc-text foo foo foo
-hchh=cd5555 -hihh
# i identifier Gray15 $foo
-hci=262626
# j label Blue4 / bold FOO:
-hcj=00008b -hbj
# k keyword Black / bold map
-hck=000000 -hbk
# m subroutine Red4 foo (1)
-hcm=260000
# mm method Red4 $obj->foo (1)
#hcmm=8b0000
# n numeric Blue4 42
-hcn=0000b8
# p paren
-hcp=260026
# pd pod-text
-hcpd=228b22 -hipd
# pu punctuation
-hcpu=000000
# qq quote Yellow4 "foo"
-hcq=8b8b00
# q quote Orange3 'foo'
#hcqq=8b8b00
#hcq=cd8500
# r regexp Red3 $x =~ m/foo/;
# rs regsub Red1 $x =~ s/bar/foo/;
# s structure (parens and braces) if (rexexp) {
-hcs=260026
# sc semicolon ;
-hcsc=000000
# v v-string
-hcv=b452cd
# w bareword Red4 foo => 1
-hcw=260000