File tree Expand file tree Collapse file tree 4 files changed +11
-11
lines changed
Expand file tree Collapse file tree 4 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -127,11 +127,11 @@ cat foo.nu | topiary format --language nu
127127### Locally Disable Formatting for Certain Expression
128128
129129If you don't like the formatted output of certain parts of your code,
130- you can choose to disable it locally with a preceding ` Topiary : disable` comment:
130+ you can choose to disable it locally with a preceding ` topiary : disable` comment:
131131
132132``` nushell
133133...
134- # Topiary : disable
134+ # topiary : disable
135135let foo = [foo, bar
136136 baz, ]
137137...
Original file line number Diff line number Diff line change 209209 (comment) @do_nothing
210210 .
211211 (_) @leaf
212- (#match? @do_nothing "Topiary : disable")
212+ (#match? @do_nothing "topiary : disable")
213213)
214214
215215(block
216216 (comment) @do_nothing
217217 .
218218 (_) @leaf
219- (#match? @do_nothing "Topiary : disable")
219+ (#match? @do_nothing "topiary : disable")
220220)
221221
222222(val_closure
223223 (comment) @do_nothing
224224 .
225225 (_) @leaf
226- (#match? @do_nothing "Topiary : disable")
226+ (#match? @do_nothing "topiary : disable")
227227)
228228
229229(val_closure
Original file line number Diff line number Diff line change 1- # Topiary : disable
1+ # topiary : disable
22let foo = {}
33
44{||
55 # other comments
66 let foo = 1
7- # Topiary : disable
7+ # topiary : disable
88 let bar = 2
99}
1010
1111module foo {
1212
13- #Topiary : disable
13+ #topiary : disable
1414 def should_not_be_formatted [] { }
1515
1616 def should_be_formatted [] { }
Original file line number Diff line number Diff line change 1- # Topiary : disable
1+ # topiary : disable
22let foo = {}
33
44{ ||
55# other comments
66 let foo = 1
7- # Topiary : disable
7+ # topiary : disable
88 let bar = 2
99}
1010
1111module foo {
1212
13- #Topiary : disable
13+ #topiary : disable
1414 def should_not_be_formatted [] { }
1515
1616 def should_be_formatted [] { }
You can’t perform that action at this time.
0 commit comments