This commit is contained in:
Ayaz Hafiz 2022-09-28 12:49:14 -05:00
parent 852fd0a127
commit f3689b1146
No known key found for this signature in database
GPG key ID: 0E2A37416A25EF58
2 changed files with 3 additions and 6 deletions

View file

@ -719,8 +719,7 @@ fn parse_defs_end<'a>(
};
if let Some((name, name_region, args)) = opt_tag_and_args {
if let Ok((_, loc_has, state)) =
loc_has_parser(min_indent).parse(arena, state)
if let Ok((_, loc_has, state)) = loc_has_parser(min_indent).parse(arena, state)
{
let (_, (type_def, def_region), state) = finish_parsing_ability_def_help(
start_column,

View file

@ -321,11 +321,9 @@ pub fn parse<'a>() -> impl Parser<'a, StrLiteral<'a>, EString<'a>> {
if state.bytes().starts_with(b"\"\"\"") {
// ending the string; don't use the last newline
segments
.push(StrSegment::Plaintext(utf8(state, without_newline)?));
segments.push(StrSegment::Plaintext(utf8(state, without_newline)?));
} else {
segments
.push(StrSegment::Plaintext(utf8(state, with_newline)?));
segments.push(StrSegment::Plaintext(utf8(state, with_newline)?));
}
segment_parsed_bytes = 0;