Add support for list items with a line break before their contents.

This commit is contained in:
Tom Alexander
2023-08-25 05:15:49 -04:00
parent efa372a9e9
commit bc5745a95f
2 changed files with 6 additions and 12 deletions

View File

@@ -47,9 +47,7 @@ pub fn assert_bounds<'s, S: Source<'s>>(
standard_properties
.begin
.ok_or("Token should have a begin.")?,
standard_properties
.end
.ok_or("Token should have a begin.")?,
standard_properties.end.ok_or("Token should have an end.")?,
);
let (rust_begin, rust_end) = get_offsets(source, rust);
if (rust_begin + 1) != begin || (rust_end + 1) != end {