Add $(...) string interpolation syntax

This commit is contained in:
Richard Feldman 2024-01-06 08:34:58 -05:00
parent a3c062d845
commit 25be487977
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B
2 changed files with 68 additions and 0 deletions

View file

@ -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 => '$',
}
}
}