Skip to content

Commit 36917f0

Browse files
blindFSmkatychev
andcommitted
refactor: lower case
--------- Co-authored-by: Mikhail Katychev <mkatych@gmail.com>
1 parent fd50e52 commit 36917f0

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,11 @@ cat foo.nu | topiary format --language nu
127127
### Locally Disable Formatting for Certain Expression
128128

129129
If 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
135135
let foo = [foo, bar
136136
baz, ]
137137
...

languages/nu.scm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,21 +209,21 @@
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

test/expected_disable.nu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Topiary: disable
1+
# topiary: disable
22
let foo = {}
33

44
{||
55
# other comments
66
let foo = 1
7-
# Topiary: disable
7+
# topiary: disable
88
let bar = 2
99
}
1010

1111
module foo {
1212

13-
#Topiary: disable
13+
#topiary: disable
1414
def should_not_be_formatted [] { }
1515

1616
def should_be_formatted [] { }

test/input_disable.nu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# Topiary: disable
1+
# topiary: disable
22
let foo = {}
33

44
{ ||
55
# other comments
66
let foo = 1
7-
# Topiary: disable
7+
# topiary: disable
88
let bar = 2
99
}
1010

1111
module foo {
1212

13-
#Topiary: disable
13+
#topiary: disable
1414
def should_not_be_formatted [] { }
1515

1616
def should_be_formatted [] { }

0 commit comments

Comments
 (0)