summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-09-01 13:13:54 +0200
committerLaurenz <laurmaedje@gmail.com>2020-09-01 13:13:54 +0200
commit56acc9982c4a0e325929360f23d64c2cece07542 (patch)
tree1bb1ed3ae8c15ddc67c0b8a867a43d4ffa773978 /src
parentd986bc4b0a35957c3f5cece82497c69e957f5c79 (diff)
Formatting 🌿
Diffstat (limited to 'src')
-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}"),