mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(llvm): use more specific groups
This commit is contained in:
parent
e3f376ed67
commit
ae51bc0638
1 changed files with 26 additions and 16 deletions
|
|
@ -1,3 +1,8 @@
|
|||
[
|
||||
(local_var)
|
||||
(global_var)
|
||||
] @variable
|
||||
|
||||
(type) @type
|
||||
(type_keyword) @type.builtin
|
||||
|
||||
|
|
@ -6,6 +11,9 @@
|
|||
(global_var)
|
||||
] @type)
|
||||
|
||||
(global_type
|
||||
(local_var) @type.definition)
|
||||
|
||||
(argument) @parameter
|
||||
|
||||
(_ inst_name: _ @keyword.operator)
|
||||
|
|
@ -68,10 +76,6 @@
|
|||
"ifunc"
|
||||
"section"
|
||||
"comdat"
|
||||
"thread_local"
|
||||
"localdynamic"
|
||||
"initialexec"
|
||||
"localexec"
|
||||
"any"
|
||||
"exactmatch"
|
||||
"largest"
|
||||
|
|
@ -80,15 +84,26 @@
|
|||
"distinct"
|
||||
"attributes"
|
||||
"vscale"
|
||||
"no_cfi"
|
||||
] @keyword
|
||||
|
||||
(linkage_aux) @keyword
|
||||
(dso_local) @keyword
|
||||
(visibility) @keyword
|
||||
(dll_storage_class) @keyword
|
||||
(unnamed_addr) @keyword
|
||||
(attribute_name) @keyword
|
||||
|
||||
[
|
||||
"no_cfi"
|
||||
(dso_local)
|
||||
(linkage_aux)
|
||||
(visibility)
|
||||
] @type.qualifier
|
||||
|
||||
[
|
||||
"thread_local"
|
||||
"localdynamic"
|
||||
"initialexec"
|
||||
"localexec"
|
||||
(unnamed_addr)
|
||||
(dll_storage_class)
|
||||
] @storageclass
|
||||
|
||||
(attribute_name) @attribute
|
||||
|
||||
(function_header [
|
||||
(linkage)
|
||||
|
|
@ -104,11 +119,6 @@
|
|||
(_ inst_name: "ret" @keyword.return)
|
||||
(float) @float
|
||||
|
||||
[
|
||||
(local_var)
|
||||
(global_var)
|
||||
] @variable
|
||||
|
||||
[
|
||||
(struct_value)
|
||||
(array_value)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue