Skip to content

Commit 6c80cd9

Browse files
authored
Revert "blocks: add double single quote block recognition (#78)" (#89)
This reverts commit 1e5a257. `''` is also how many languages express an empty string, which shouldn't be treated as a quote. #78 causes quite a few problems for many files internally, and I assume it'd also cause problems externally.
1 parent 304f054 commit 6c80cd9

File tree

3 files changed

+1
-33
lines changed

3 files changed

+1
-33
lines changed

goldens/block.in

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -155,19 +155,3 @@ some_build_rule(
155155
src = "one-more-source",
156156
)
157157
// keep-sorted-test end
158-
159-
// Nix multi line string
160-
// keep-sorted-test start block=yes newline_separated=yes
161-
foo = throw ''
162-
Some text here.
163-
164-
Text has empty lines.
165-
'';
166-
167-
bar = ''
168-
While foo throws, this is just a string
169-
170-
171-
Again, with some spaces here and there.
172-
'';
173-
// keep-sorted-test end

goldens/block.out

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -157,19 +157,3 @@ some_build_rule(
157157
src = "another-source",
158158
)
159159
// keep-sorted-test end
160-
161-
// Nix multi line string
162-
// keep-sorted-test start block=yes newline_separated=yes
163-
bar = ''
164-
While foo throws, this is just a string
165-
166-
167-
Again, with some spaces here and there.
168-
'';
169-
170-
foo = throw ''
171-
Some text here.
172-
173-
Text has empty lines.
174-
'';
175-
// keep-sorted-test end

keepsorted/line_group.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ var (
251251
}
252252
quotes = []string{
253253
`"""`, `'''`, "```",
254-
`"`, `''`, `'`, "`",
254+
`"`, `'`, "`",
255255
}
256256
)
257257

0 commit comments

Comments
 (0)