Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions goldens/block.in
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,19 @@ some_build_rule(
src = "one-more-source",
)
// keep-sorted-test end

// Nix multi line string
// keep-sorted-test start block=yes newline_separated=yes
foo = throw ''
Some text here.

Text has empty lines.
'';

bar = ''
While foo throws, this is just a string


Again, with some spaces here and there.
'';
// keep-sorted-test end
16 changes: 16 additions & 0 deletions goldens/block.out
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,19 @@ some_build_rule(
src = "another-source",
)
// keep-sorted-test end

// Nix multi line string
// keep-sorted-test start block=yes newline_separated=yes
bar = ''
While foo throws, this is just a string


Again, with some spaces here and there.
'';

foo = throw ''
Some text here.

Text has empty lines.
'';
// keep-sorted-test end
2 changes: 1 addition & 1 deletion keepsorted/line_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ var (
}
quotes = []string{
`"""`, `'''`, "```",
`"`, `'`, "`",
`"`, `''`, `'`, "`",
}
)

Expand Down