mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
clippy
This commit is contained in:
parent
5b3c7eeee3
commit
64eed62b69
3 changed files with 9 additions and 7 deletions
|
@ -151,6 +151,8 @@ pub fn parse<'a>() -> impl Parser<'a, StrLiteral<'a>, EString<'a>> {
|
|||
return Ok((MadeProgress, PlainLine(""), advance_state!(state, 1)?));
|
||||
}
|
||||
} else {
|
||||
// the string is non-empty, which means we need to convert any previous segments
|
||||
// and the current segment into a string literal
|
||||
if is_multiline {
|
||||
if bytes.as_slice().starts_with(b"\"\"") {
|
||||
end_segment!(StrSegment::Plaintext);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue