mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
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:
parent
42fc28ba91
commit
5b110f3440
1 changed files with 0 additions and 3 deletions
|
|
@ -12,9 +12,6 @@
|
|||
(keyword_array)
|
||||
] @function.call
|
||||
|
||||
(object_reference
|
||||
name: (identifier) @type)
|
||||
|
||||
(relation
|
||||
alias: (identifier) @variable)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue