mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -04:00
feat(queries): update idl hightlight (#6625)
Signed-off-by: DragonBillow <DragonBillow@outlook.com>
This commit is contained in:
parent
ccfa76d4cb
commit
d184407e33
1 changed files with 134 additions and 10 deletions
|
|
@ -8,19 +8,45 @@
|
||||||
"bitmask"
|
"bitmask"
|
||||||
"bitset"
|
"bitset"
|
||||||
"@annotation"
|
"@annotation"
|
||||||
"interface"
|
|
||||||
"exception"
|
"exception"
|
||||||
"typedef"
|
"typedef"
|
||||||
|
"home"
|
||||||
|
"typeid"
|
||||||
|
"typeprefix"
|
||||||
|
(interface_kind)
|
||||||
|
(value_kind)
|
||||||
|
"component"
|
||||||
|
"porttype"
|
||||||
|
"connector"
|
||||||
|
"eventtype"
|
||||||
|
"valuetype"
|
||||||
] @keyword.type
|
] @keyword.type
|
||||||
|
|
||||||
|
(import_dcl
|
||||||
|
"import" @keyword.directive)
|
||||||
|
|
||||||
[
|
[
|
||||||
"module"
|
"module"
|
||||||
"attribute"
|
"attribute"
|
||||||
|
"factory"
|
||||||
|
"manages"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
"const"
|
"const"
|
||||||
"readonly"
|
"readonly"
|
||||||
|
"abstract"
|
||||||
|
"custom"
|
||||||
|
"supports"
|
||||||
|
"provides"
|
||||||
|
"uses"
|
||||||
|
"port"
|
||||||
|
"mirrorport"
|
||||||
|
"emits"
|
||||||
|
"publishes"
|
||||||
|
"consumes"
|
||||||
|
"primarykey"
|
||||||
|
"finder"
|
||||||
] @keyword.modifier
|
] @keyword.modifier
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -44,14 +70,17 @@
|
||||||
(unsigned_longlong_int)
|
(unsigned_longlong_int)
|
||||||
(floating_pt_type)
|
(floating_pt_type)
|
||||||
(char_type)
|
(char_type)
|
||||||
(scoped_name)
|
|
||||||
(string_type)
|
(string_type)
|
||||||
(any_type)
|
(any_type)
|
||||||
(fixed_pt_type)
|
(fixed_pt_type)
|
||||||
(sequence_type)
|
(sequence_type)
|
||||||
(map_type)
|
(map_type)
|
||||||
|
(object_type)
|
||||||
|
(value_base_type)
|
||||||
] @type.builtin
|
] @type.builtin
|
||||||
|
|
||||||
|
(scoped_name) @type
|
||||||
|
|
||||||
(boolean_literal) @boolean
|
(boolean_literal) @boolean
|
||||||
|
|
||||||
(number_literal) @number
|
(number_literal) @number
|
||||||
|
|
@ -95,7 +124,8 @@
|
||||||
(readonly_attr_declarator
|
(readonly_attr_declarator
|
||||||
(simple_declarator) @variable.member)
|
(simple_declarator) @variable.member)
|
||||||
|
|
||||||
(attr_declarator) @variable.member
|
(attr_declarator
|
||||||
|
(simple_declarator) @variable.member)
|
||||||
|
|
||||||
(annotation_appl
|
(annotation_appl
|
||||||
"@" @attribute
|
"@" @attribute
|
||||||
|
|
@ -176,7 +206,7 @@
|
||||||
"bitfield" @keyword.modifier
|
"bitfield" @keyword.modifier
|
||||||
(positive_int_const) @number
|
(positive_int_const) @number
|
||||||
(destination_type)* @type)
|
(destination_type)* @type)
|
||||||
(identifier) @variable.parameter)
|
(identifier) @variable.member)
|
||||||
|
|
||||||
(bit_value) @constant
|
(bit_value) @constant
|
||||||
|
|
||||||
|
|
@ -195,11 +225,105 @@
|
||||||
(scoped_name
|
(scoped_name
|
||||||
(identifier) @type))
|
(identifier) @type))
|
||||||
|
|
||||||
(simple_declarator
|
|
||||||
(identifier) @attribute)
|
|
||||||
|
|
||||||
(array_declarator
|
|
||||||
(identifier) @attribute)
|
|
||||||
|
|
||||||
(annotation_appl_param
|
(annotation_appl_param
|
||||||
(identifier) @attribute)
|
(identifier) @attribute)
|
||||||
|
|
||||||
|
(home_header
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(factory_dcl
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(factory_param_dcl
|
||||||
|
"in" @keyword.modifier)
|
||||||
|
|
||||||
|
(op_oneway_dcl
|
||||||
|
"oneway" @keyword.modifier
|
||||||
|
(identifier) @function.method)
|
||||||
|
|
||||||
|
(in_param_dcl
|
||||||
|
"in" @keyword.modifier)
|
||||||
|
|
||||||
|
(context_expr
|
||||||
|
"context" @keyword.modifier)
|
||||||
|
|
||||||
|
(get_excep_expr
|
||||||
|
"getraises" @keyword.exception)
|
||||||
|
|
||||||
|
(set_excep_expr
|
||||||
|
"setraises" @keyword.exception)
|
||||||
|
|
||||||
|
(value_header
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(value_abs_def
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(value_forward_dcl
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(value_box_def
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(provides_dcl
|
||||||
|
(interface_type) @type
|
||||||
|
(identifier) @variable.member)
|
||||||
|
|
||||||
|
(uses_dcl
|
||||||
|
(identifier) @variable.member)
|
||||||
|
|
||||||
|
(component_forward_dcl
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(component_header
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(porttype_forward_dcl
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(porttype_def
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(port_dcl
|
||||||
|
(identifier) @variable.member)
|
||||||
|
|
||||||
|
(connector_header
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(emits_dcl
|
||||||
|
(identifier) @variable.member)
|
||||||
|
|
||||||
|
(publishes_dcl
|
||||||
|
(identifier) @variable.member)
|
||||||
|
|
||||||
|
(consumes_dcl
|
||||||
|
(identifier) @variable.member)
|
||||||
|
|
||||||
|
(event_forward_dcl
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(event_header
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(event_abs_def
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(template_module_dcl
|
||||||
|
(identifier) @type)
|
||||||
|
|
||||||
|
(formal_parameter
|
||||||
|
(formal_parameter_type) @type
|
||||||
|
(identifier) @variable.member)
|
||||||
|
|
||||||
|
(init_param_dcl
|
||||||
|
"in" @keyword.modifier
|
||||||
|
(simple_declarator) @variable.parameter)
|
||||||
|
|
||||||
|
(finder_dcl
|
||||||
|
(identifier) @function.method)
|
||||||
|
|
||||||
|
(member
|
||||||
|
identifier: (declarators) @variable.member)
|
||||||
|
|
||||||
|
(factory_param_dcl
|
||||||
|
(simple_declarator) @variable.parameter)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue