File tree Expand file tree Collapse file tree 3 files changed +60
-0
lines changed
Expand file tree Collapse file tree 3 files changed +60
-0
lines changed Original file line number Diff line number Diff line change 117117 (parameter_pipes)? @do_nothing
118118)
119119
120+ ;; let/mut expression
121+ (_
122+ value: (pipeline
123+ .
124+ (pipe_element) @append_indent_start
125+ .
126+ (comment)*
127+ .
128+ ["err>|" "out>|" "e>|" "o>|" "err+out>|" "out+err>|" "o+e>|" "e+o>|" "|"]
129+ ) @append_indent_end
130+ )
131+
132+ ;; assignment
133+ (_
134+ rhs: (pipeline
135+ .
136+ (pipe_element) @append_indent_start
137+ .
138+ (comment)*
139+ .
140+ ["err>|" "out>|" "e>|" "o>|" "err+out>|" "out+err>|" "o+e>|" "e+o>|" "|"]
141+ ) @append_indent_end
142+ )
143+
120144;; space/newline between parameters
121145(parameter_pipes
122146 (
Original file line number Diff line number Diff line change 1+ let foo = 1
2+ | $in
3+ e > | $in
4+
5+ mut bar = 1
6+ # comment
7+ | $in
8+ # comment
9+ e +o> | $in
10+
11+ $bar += 1
12+ | $in
13+ # comment
14+ err +out> | $in
15+
16+ let foo = 1 | $in e > | $in
17+ mut bar = 1 | $in e +o> | $in
18+ $bar += 1 | $in err +out> | $in
Original file line number Diff line number Diff line change 1+ let foo = 1
2+ | $in
3+ e > | $in
4+
5+ mut bar = 1
6+ # comment
7+ | $in
8+ # comment
9+ e +o> | $in
10+
11+ $bar += 1
12+ | $in
13+ # comment
14+ err +out> | $in
15+
16+ let foo = 1 | $in e > | $in
17+ mut bar = 1 | $in e +o> | $in
18+ $bar += 1 | $in err +out> | $in
You can’t perform that action at this time.
0 commit comments