summaryrefslogtreecommitdiff
path: root/src/syntax/parsing.rs
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/syntax/parsing.rs
parentd986bc4b0a35957c3f5cece82497c69e957f5c79 (diff)
Formatting 🌿
Diffstat (limited to 'src/syntax/parsing.rs')
-rw-r--r--src/syntax/parsing.rs6
1 files changed, 2 insertions, 4 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);
}