aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--runtime/queries/sql/highlights.scm8
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/queries/sql/highlights.scm b/runtime/queries/sql/highlights.scm
index b3a0c71c6..7a201a026 100644
--- a/runtime/queries/sql/highlights.scm
+++ b/runtime/queries/sql/highlights.scm
@@ -13,8 +13,12 @@
(keyword_object_id)
] @function.call
-(object_reference
- name: (identifier) @type)
+((object_reference
+ name: (identifier) @type) @_obj_ref
+ (#not-has-parent? @_obj_ref invocation))
+
+(cte
+ (identifier) @type)
(relation
alias: (identifier) @variable)