From ae51bc0638df07489d70c21da05ba276db8e37a9 Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Wed, 16 Nov 2022 18:32:01 +0200 Subject: highlights(llvm): use more specific groups --- queries/llvm/highlights.scm | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) (limited to 'queries') diff --git a/queries/llvm/highlights.scm b/queries/llvm/highlights.scm index d61d52937..e2857b02c 100644 --- a/queries/llvm/highlights.scm +++ b/queries/llvm/highlights.scm @@ -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) -- cgit v1.2.3-70-g09d2