From 4c8634c600ad0bba03ccdf884b32f234ecbff30c Mon Sep 17 00:00:00 2001 From: Martin Haug Date: Wed, 23 Feb 2022 13:57:15 +0100 Subject: Early stop for falling indents. Fix code edits and at_start handling. Also fix dedenting for multi-byte chars in raw blocks. --- src/syntax/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/syntax') 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, } } -- cgit v1.2.3