diff options
| author | Martin Haug <mhaug@live.de> | 2022-02-23 13:57:15 +0100 |
|---|---|---|
| committer | Martin Haug <mhaug@live.de> | 2022-02-23 14:50:38 +0100 |
| commit | 4c8634c600ad0bba03ccdf884b32f234ecbff30c (patch) | |
| tree | bef1e56ebe6533accc5a1e69ed7863d72b336789 /src/syntax | |
| parent | 20ac96f27a2e06b985abc1c95049c32c2b88ef5d (diff) | |
Early stop for falling indents.
Fix code edits and at_start handling.
Also fix dedenting for multi-byte chars in raw blocks.
Diffstat (limited to 'src/syntax')
| -rw-r--r-- | src/syntax/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index 2211fcb6..fc98bb34 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -758,7 +758,7 @@ impl NodeKind { pub fn is_at_start(&self, prev: bool) -> bool { match self { Self::Space(n) if *n > 0 => true, - Self::LineComment | Self::BlockComment => prev, + Self::Space(_) | Self::LineComment | Self::BlockComment => prev, _ => false, } } |
