Skip to content

Commit 89fe458

Browse files
committed
fix depth check for float split step
1 parent c6e7917 commit 89fe458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/parser/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ impl TopEntryPoint {
102102
match step {
103103
Step::Enter { .. } => depth += 1,
104104
Step::Exit => depth -= 1,
105-
Step::FloatSplit { .. } => depth -= 1,
105+
Step::FloatSplit { has_pseudo_dot } => depth -= 1 + has_pseudo_dot as usize,
106106
Step::Token { .. } | Step::Error { .. } => (),
107107
}
108108
}

0 commit comments

Comments
 (0)