Basic DocumentHighlightKind support for assignments

This commit is contained in:
Jeremy Kolb 2020-01-04 17:46:01 -05:00 committed by kjeremy
parent 19eb7fa1db
commit d993f329a0
5 changed files with 107 additions and 17 deletions

View file

@ -144,6 +144,7 @@ impl BinOp {
}
}
}
impl ast::BinExpr {
pub fn op_details(&self) -> Option<(SyntaxToken, BinOp)> {
self.syntax().children_with_tokens().filter_map(|it| it.into_token()).find_map(|c| {