diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2023-02-07 15:31:51 +0100 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2023-02-07 15:44:00 +0100 |
| commit | f6539b139e185c5bb08de5b8ff0275b47c70df43 (patch) | |
| tree | 9e6c9d3e0320522a87f76ba63671e4a0e7fc0f2f | |
| parent | c6e7917d6ed2ae36534b064a51697b54f497e02e (diff) | |
| download | rust-f6539b139e185c5bb08de5b8ff0275b47c70df43.tar.gz rust-f6539b139e185c5bb08de5b8ff0275b47c70df43.zip | |
fix depth check for float split step
| -rw-r--r-- | crates/parser/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/parser/src/lib.rs b/crates/parser/src/lib.rs index 6c72b5994b5..9b895ff3ca6 100644 --- a/crates/parser/src/lib.rs +++ b/crates/parser/src/lib.rs @@ -102,7 +102,7 @@ impl TopEntryPoint { match step { Step::Enter { .. } => depth += 1, Step::Exit => depth -= 1, - Step::FloatSplit { .. } => depth -= 1, + Step::FloatSplit { has_pseudo_dot } => depth -= 1 + !has_pseudo_dot as usize, Step::Token { .. } | Step::Error { .. } => (), } } |
