mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Revise error for single-quote interpolation
This commit is contained in:
parent
2c64718ef6
commit
878042bc3d
1 changed files with 3 additions and 3 deletions
|
@ -1098,9 +1098,9 @@ fn to_str_report<'a>(
|
|||
ESingleQuote::InterpolationNotAllowed => {
|
||||
alloc.stack([
|
||||
alloc.concat([
|
||||
alloc.reflow("I am part way through parsing this scalar literal (character literal), "),
|
||||
alloc.reflow("but I encountered a string interpolation like \"$(this)\", which is not "),
|
||||
alloc.reflow("allowed in scalar literals."),
|
||||
alloc.reflow("I am part way through parsing this single-quote literal, "),
|
||||
alloc.reflow("but I encountered a string interpolation like \"$(this)\","),
|
||||
alloc.reflow("which is not allowed in single-quote literals."),
|
||||
]),
|
||||
alloc.region_with_subregion(lines.convert_region(surroundings), region),
|
||||
alloc.concat([
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue