Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/parsers/typst.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ pub fn parse_typst(file_content: impl AsRef<str>) -> Data<'static> {
full_text,
interpreted_as,
));

// Separate list entries so LanguageTool does not merge
// consecutive items into a single sentence.
if matches!(kind, SyntaxKind::ListItem | SyntaxKind::EnumItem) {
annotations.push(DataAnnotation::new_text("\n"));
}

continue;
},
_ => {},
Expand Down
Loading