diff --git a/runtime/queries/sql/highlights.scm b/runtime/queries/sql/highlights.scm index b3a0c71c..7a201a02 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)