Fix empty string parsing bug

This commit is contained in:
Richard Feldman 2020-08-30 21:04:08 -04:00
parent 5b27e10095
commit 74c0bdfd5a
2 changed files with 3 additions and 2 deletions

View file

@ -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 {