diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-09-01 13:13:54 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-09-01 13:13:54 +0200 |
| commit | 56acc9982c4a0e325929360f23d64c2cece07542 (patch) | |
| tree | 1bb1ed3ae8c15ddc67c0b8a867a43d4ffa773978 /src/syntax/parsing.rs | |
| parent | d986bc4b0a35957c3f5cece82497c69e957f5c79 (diff) | |
Formatting 🌿
Diffstat (limited to 'src/syntax/parsing.rs')
| -rw-r--r-- | src/syntax/parsing.rs | 6 |
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); } |
