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 {
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);
}

View File

@ -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}"),