Skip to content

Commit

Permalink
[server] add range_clause highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
Lycs-D committed Jan 9, 2024
1 parent 2d5d12e commit 4ccd550
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions server/semantic/DumbAwareSemanticVisitor.v
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ fn (_ DumbAwareSemanticVisitor) highlight_node(node psi.AstNode, root psi.PsiEle
}
} else if node.type_name == .field_name {
result << element_to_semantic(node, .property)
} else if node.type_name == .range_clause {
if first_child := node.first_child() {
result << element_to_semantic(first_child, .property)
}
} else if node.type_name == .struct_field_declaration {
if first_child := node.first_child() {
if first_child.type_name != .embedded_definition {
Expand Down

0 comments on commit 4ccd550

Please sign in to comment.