Fix format

This commit is contained in:
Edwin Cheng 2020-01-10 20:39:05 +08:00
parent 384e1ced88
commit 0593da9a36

View File

@ -171,14 +171,11 @@ fn extend_tokens_from_range(
}
}
fn skip_whitespace(
mut token: SyntaxToken,
direction: Direction,
) -> Option<SyntaxToken> {
fn skip_whitespace(mut token: SyntaxToken, direction: Direction) -> Option<SyntaxToken> {
while token.kind() == WHITESPACE {
token = match direction {
Direction::Next => token.next_token()?,
Direction::Prev => token.prev_token()?,
Direction::Prev => token.prev_token()?,
}
}
Some(token)