Merge branch 'main' into main

This commit is contained in:
shamsartem 2023-08-01 14:02:34 +02:00 committed by GitHub
commit dbd1100a20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
243 changed files with 29812 additions and 3149 deletions

View file

@ -557,14 +557,8 @@ pub fn can_problem<'b>(
doc = alloc.stack([
alloc.reflow("This string interpolation is invalid:"),
alloc.region(lines.convert_region(region)),
alloc.concat([
alloc.reflow(r"I was expecting an identifier, like "),
alloc.parser_suggestion("\\u(message)"),
alloc.reflow(" or "),
alloc.parser_suggestion("\\u(LoremIpsum.text)"),
alloc.text("."),
]),
alloc.reflow(r"Learn more about string interpolation at TODO"),
alloc.reflow(r"String interpolations cannot contain newlines or other interpolations."),
alloc.reflow(r"You can learn more about string interpolation at <https://www.roc-lang.org/tutorial#string-interpolation>"),
]);
title = SYNTAX_PROBLEM.to_string();