mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Add $(...) string interpolation syntax
This commit is contained in:
parent
a3c062d845
commit
25be487977
2 changed files with 68 additions and 0 deletions
|
@ -141,6 +141,7 @@ pub enum EscapedChar {
|
|||
SingleQuote, // \'
|
||||
Backslash, // \\
|
||||
CarriageReturn, // \r
|
||||
Dollar, // \$
|
||||
}
|
||||
|
||||
impl EscapedChar {
|
||||
|
@ -155,6 +156,7 @@ impl EscapedChar {
|
|||
CarriageReturn => 'r',
|
||||
Tab => 't',
|
||||
Newline => 'n',
|
||||
Dollar => '$',
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -168,6 +170,7 @@ impl EscapedChar {
|
|||
CarriageReturn => '\r',
|
||||
Tab => '\t',
|
||||
Newline => '\n',
|
||||
Dollar => '$',
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue