mirror of
https://github.com/roc-lang/roc.git
synced 2025-12-23 08:48:03 +00:00
don't escape newlines in multiline string literals
This commit is contained in:
parent
efac5c073a
commit
056b5e2a56
1 changed files with 1 additions and 1 deletions
|
|
@ -5752,7 +5752,7 @@ fn extractMultilineStringSegments(self: *Self, parts: []const AST.Expr.Idx) std.
|
|||
.string_part => |sp| {
|
||||
// Add newline between consecutive string parts
|
||||
if (last_string_part_end != null) {
|
||||
try self.addStringLiteralToScratch("\\n", .{ .start = last_string_part_end.?, .end = part_node.to_tokenized_region().start });
|
||||
try self.addStringLiteralToScratch("\n", .{ .start = last_string_part_end.?, .end = part_node.to_tokenized_region().start });
|
||||
}
|
||||
|
||||
// Get and process the raw text of the string part
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue