Skip to content

Commit b8a232b

Browse files
committed
Fix not handling blank lines
1 parent 63ebbd3 commit b8a232b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/moonjuice-lsp/src/semantic_highlighting.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,14 @@ impl SemanticHighlightingProvider {
5555
.into_iter()
5656
.filter_map(|token| {
5757
let delta_line = if token.start.line != previous_start.line {
58+
let delta_line = token.start.line - previous_start.line;
59+
5860
previous_start = Position {
5961
line: token.start.line,
6062
column: 1,
6163
};
6264

63-
1
65+
delta_line as u32
6466
} else {
6567
0
6668
};

0 commit comments

Comments
 (0)