From 4ccd550a3aa6bdf7fcae5f680e11b718573b8045 Mon Sep 17 00:00:00 2001 From: Lycs-D <139197676+Lycs-D@users.noreply.github.com> Date: Wed, 10 Jan 2024 02:04:48 +0800 Subject: [PATCH] [server] add `range_clause` highlight --- server/semantic/DumbAwareSemanticVisitor.v | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/semantic/DumbAwareSemanticVisitor.v b/server/semantic/DumbAwareSemanticVisitor.v index c271ca37..a65e01a0 100644 --- a/server/semantic/DumbAwareSemanticVisitor.v +++ b/server/semantic/DumbAwareSemanticVisitor.v @@ -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 {