diff --git a/src/syntax/parsing.rs b/src/syntax/parsing.rs index 19434bab0..fc19d61e5 100644 --- a/src/syntax/parsing.rs +++ b/src/syntax/parsing.rs @@ -81,7 +81,7 @@ impl Parser<'_> { } else { SyntaxNode::Spacing }) - }, + } Token::LineComment(_) | Token::BlockComment(_) => { self.at_block_or_line_start = was_at_block_or_line_start; @@ -182,9 +182,7 @@ impl Parser<'_> { self.skip_white(); let mut tree = SyntaxTree::new(); - while !self.eof() - && !matches!(self.peekv(), Some(Token::Space(n)) if n >= 1) - { + while !self.eof() && !matches!(self.peekv(), Some(Token::Space(n)) if n >= 1) { if let Some(node) = self.parse_node() { tree.push(node); } diff --git a/src/syntax/tokens.rs b/src/syntax/tokens.rs index f6ae834e3..23bad7c8e 100644 --- a/src/syntax/tokens.rs +++ b/src/syntax/tokens.rs @@ -269,7 +269,7 @@ impl<'s> Iterator for Tokens<'s> { '`' if self.mode == Body => self.read_raw_or_code(), // Sections. - '#' if self.mode == Body => Hashtag, + '#' if self.mode == Body => Hashtag, // Non-breaking spaces. '~' if self.mode == Body => Text("\u{00A0}"),