Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
nvarner committed Nov 1, 2023
1 parent ed8cc3d commit b38da1a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/server/semantic_tokens/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,10 +222,7 @@ fn token_from_ident(ident: &LinkedNode) -> TokenType {
fn get_expr_following_hashtag<'a>(hashtag: &LinkedNode<'a>) -> Option<LinkedNode<'a>> {
hashtag
.next_sibling()
.filter(|next| {
next.cast::<ast::Expr>()
.map_or(false, |expr| expr.hash())
})
.filter(|next| next.cast::<ast::Expr>().map_or(false, |expr| expr.hash()))
.and_then(|node| node.leftmost_leaf())
}

Expand Down

0 comments on commit b38da1a

Please sign in to comment.