From sql/highlights.scm, remove @type capture

@type is too generic and captures many different things, e.g. function
calls and table references. It doesn't capture builtin types, which are
captured by @type.builtin.

The outcome is that function calls are highlighted as types. Same for
table names.

I guess one can make an argument that tables are composite types in SQL,
but it doesn't feel right to highlight them in the same way as e.g.
`DOUBLE`.

To fix this issue, just remove the @type capture rule.
This commit is contained in:
Anton Daitche 2025-12-04 11:16:47 +01:00
parent 42fc28ba91
commit 5b110f3440

View file

@ -12,9 +12,6 @@
(keyword_array)
] @function.call
(object_reference
name: (identifier) @type)
(relation
alias: (identifier) @variable)