highlights(llvm): use more specific groups

This commit is contained in:
ObserverOfTime 2022-11-16 18:32:01 +02:00
parent e3f376ed67
commit ae51bc0638

View file

@ -1,3 +1,8 @@
[
(local_var)
(global_var)
] @variable
(type) @type (type) @type
(type_keyword) @type.builtin (type_keyword) @type.builtin
@ -6,6 +11,9 @@
(global_var) (global_var)
] @type) ] @type)
(global_type
(local_var) @type.definition)
(argument) @parameter (argument) @parameter
(_ inst_name: _ @keyword.operator) (_ inst_name: _ @keyword.operator)
@ -68,10 +76,6 @@
"ifunc" "ifunc"
"section" "section"
"comdat" "comdat"
"thread_local"
"localdynamic"
"initialexec"
"localexec"
"any" "any"
"exactmatch" "exactmatch"
"largest" "largest"
@ -80,15 +84,26 @@
"distinct" "distinct"
"attributes" "attributes"
"vscale" "vscale"
"no_cfi"
] @keyword ] @keyword
(linkage_aux) @keyword
(dso_local) @keyword [
(visibility) @keyword "no_cfi"
(dll_storage_class) @keyword (dso_local)
(unnamed_addr) @keyword (linkage_aux)
(attribute_name) @keyword (visibility)
] @type.qualifier
[
"thread_local"
"localdynamic"
"initialexec"
"localexec"
(unnamed_addr)
(dll_storage_class)
] @storageclass
(attribute_name) @attribute
(function_header [ (function_header [
(linkage) (linkage)
@ -104,11 +119,6 @@
(_ inst_name: "ret" @keyword.return) (_ inst_name: "ret" @keyword.return)
(float) @float (float) @float
[
(local_var)
(global_var)
] @variable
[ [
(struct_value) (struct_value)
(array_value) (array_value)