mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
Fix empty string parsing bug
This commit is contained in:
parent
5b27e10095
commit
74c0bdfd5a
2 changed files with 3 additions and 2 deletions
|
@ -100,7 +100,8 @@ pub fn parse<'a>() -> impl Parser<'a, StrLiteral<'a>> {
|
|||
return parse_block_string(arena, state, &mut bytes);
|
||||
}
|
||||
_ => {
|
||||
return Ok((PlainLine(""), state.advance_without_indenting(2)?));
|
||||
// Advance 1 for the close quote
|
||||
return Ok((PlainLine(""), state.advance_without_indenting(1)?));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue