Fixup string dollar handling

This commit is contained in:
Joshua Warner 2024-12-02 20:44:51 -08:00
parent dfcb7a0c3b
commit 45424e27fb
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD

View file

@ -253,7 +253,6 @@ pub fn parse_str_like_literal<'a>() -> impl Parser<'a, StrLikeLiteral<'a>, EStri
};
}
b'\'' if is_single_quote => {
preceded_by_dollar = false;
end_segment!(StrSegment::Plaintext);
let expr = if segments.len() == 1 {
@ -355,7 +354,6 @@ pub fn parse_str_like_literal<'a>() -> impl Parser<'a, StrLikeLiteral<'a>, EStri
}
}
b'\\' => {
preceded_by_dollar = false;
// We're about to begin an escaped segment of some sort!
//
// Record the current segment so we can begin a new one.