mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 18:08:55 +03:00
Revise error for single-quote interpolation
This commit is contained in:
parent
2c64718ef6
commit
878042bc3d
@ -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…
Reference in New Issue
Block a user