-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.toml
81 lines (63 loc) · 1.27 KB
/
config.toml
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
[delete_paren_content]
match='(:[1])'
rewrite='()'
rule='where nested'
[delete_brace_content]
match='{:[1]}'
rewrite='{}'
rule='where nested'
[delete_bracket_content]
match='[:[1]]'
rewrite='[]'
rule='where nested'
[extract_brace_body]
match=':[x] {:[y]}'
rewrite=':[y]'
rule='where nested'
[delete_brace_like]
match=':[x] {:[y]}'
rewrite=''
rule='where nested'
# Helps put blank bodies across newlines on the same line for line deletion.
[blank_brace]
match='{ }'
rewrite='{}'
[delete_line]
match=':[x\n]'
rewrite=''
[delete_string_content]
match='":[x]"'
rewrite='""'
[delete_empty_paren]
match='()'
rewrite=''
[delete_empty_brace]
match='{}'
rewrite=''
[remove_first_paren_element]
match='(:[1],:[2])'
rewrite='(:[2])'
[preserve_first_paren_element]
match='(:[1],:[2])'
rewrite='(:[1])'
[remove_first_expression_for_comma_sep]
match=':[1:e],:[2:e]'
rewrite=':[2]'
[remove_first_expression_for_comma_sep_space]
match=':[1:e], :[2:e]'
rewrite=':[2]'
[remove_first_expression_for_semicolon_sep_space]
match=':[1:e]; :[2:e]'
rewrite=':[2]'
[remove_first_expression_for_colon_sep]
match=':[1:e]::[2:e]'
rewrite=':[2]'
[preserve_first_expression_for_colon_sep]
match=':[1:e]::[2:e]'
rewrite=':[1]'
[remove_angle_body]
match='<:[x.]>'
rewrite='<>'
[remove_angle]
match='<:[x.]>'
rewrite=''