Formatting 🌿

This commit is contained in:
Laurenz 2020-09-01 13:13:54 +02:00
parent d986bc4b0a
commit 56acc9982c
2 changed files with 3 additions and 5 deletions

View File

@ -81,7 +81,7 @@ impl Parser<'_> {
} else { } else {
SyntaxNode::Spacing SyntaxNode::Spacing
}) })
}, }
Token::LineComment(_) | Token::BlockComment(_) => { Token::LineComment(_) | Token::BlockComment(_) => {
self.at_block_or_line_start = was_at_block_or_line_start; self.at_block_or_line_start = was_at_block_or_line_start;
@ -182,9 +182,7 @@ impl Parser<'_> {
self.skip_white(); self.skip_white();
let mut tree = SyntaxTree::new(); let mut tree = SyntaxTree::new();
while !self.eof() while !self.eof() && !matches!(self.peekv(), Some(Token::Space(n)) if n >= 1) {
&& !matches!(self.peekv(), Some(Token::Space(n)) if n >= 1)
{
if let Some(node) = self.parse_node() { if let Some(node) = self.parse_node() {
tree.push(node); tree.push(node);
} }