Skip to content

Commit d4df303

Browse files
progres
1 parent 077cf68 commit d4df303

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

crates/pgls_hover/src/hovered_node.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl HoveredNode {
4848
"role_identifier" => Some(HoveredNode::Role(node_content)),
4949

5050
"any_identifier"
51-
if ctx.matches_ancestor_history(&["relation", "object_reference"])
51+
if ctx.matches_ancestor_history(&["table_reference"])
5252
|| ctx
5353
.matches_ancestor_history(&["grantable_on_table", "object_reference"]) =>
5454
{
@@ -81,7 +81,8 @@ impl HoveredNode {
8181
}
8282

8383
"any_identifier"
84-
if ctx.matches_ancestor_history(&["binary_expression", "object_reference"]) =>
84+
if ctx.matches_ancestor_history(&["binary_expression", "object_reference"])
85+
|| ctx.matches_ancestor_history(&["term", "object_reference"]) =>
8586
{
8687
Some(HoveredNode::Column((
8788
ctx.identifier_qualifiers.0.clone(),
@@ -91,7 +92,7 @@ impl HoveredNode {
9192
}
9293

9394
"any_identifier"
94-
if ctx.matches_ancestor_history(&["invocation", "object_reference"]) =>
95+
if ctx.matches_ancestor_history(&["invocation", "function_reference"]) =>
9596
{
9697
Some(HoveredNode::Function((
9798
ctx.identifier_qualifiers.1.clone(),

0 commit comments

Comments
 (0)