summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/syntax/parsing.rs6
-rw-r--r--src/syntax/tokens.rs2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/syntax/parsing.rs b/src/syntax/parsing.rs
index 19434bab..fc19d61e 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 f6ae834e..23bad7c8 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}"),