mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Fmt
This commit is contained in:
parent
852fd0a127
commit
f3689b1146
2 changed files with 3 additions and 6 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue