From 5b110f34409b4fd0b52fce8611442c93fbc1e249 Mon Sep 17 00:00:00 2001 From: Anton Daitche Date: Thu, 4 Dec 2025 11:16:47 +0100 Subject: [PATCH] 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. --- queries/sql/highlights.scm | 3 --- 1 file changed, 3 deletions(-) diff --git a/queries/sql/highlights.scm b/queries/sql/highlights.scm index 67eef18ae..09e44bb86 100644 --- a/queries/sql/highlights.scm +++ b/queries/sql/highlights.scm @@ -12,9 +12,6 @@ (keyword_array) ] @function.call -(object_reference - name: (identifier) @type) - (relation alias: (identifier) @variable)