feat(idl): update highlight

Signed-off-by: DragonBillow <DragonBillow@outlook.com>
This commit is contained in:
DragonBillow 2024-07-01 16:32:56 +08:00 committed by Christian Clason
parent 7ff0b8d3d2
commit 1e546c0f5e
2 changed files with 19 additions and 7 deletions

View file

@ -79,6 +79,8 @@
(value_base_type)
] @type.builtin
(escape_sequence) @string.escape
(scoped_name) @type
(boolean_literal) @boolean
@ -111,7 +113,7 @@
"~"
"|"
"^"
"$"
"&"
] @operator
[
@ -128,15 +130,22 @@
(simple_declarator) @variable.member)
(annotation_appl
"@" @attribute
"@" @attribute)
(annotation_appl
(scoped_name) @attribute)
(annotation_appl
(annotation_built_name) @attribute.builtin)
(op_dcl
(identifier) @function.method)
(type_declarator
(simple_type_spec) @type
(any_declarators) @type)
(simple_type_spec) @type)
(type_declarator
(any_declarators) @variable.member)
(param_dcl
(simple_declarator) @variable.parameter)
@ -205,8 +214,8 @@
(bitfield_spec
"bitfield" @keyword.modifier
(positive_int_const) @number
(destination_type)* @type)
(identifier) @variable.member)
(destination_type)? @type)
(identifier)* @variable.member)
(bit_value) @constant
@ -327,3 +336,6 @@
(factory_param_dcl
(simple_declarator) @variable.parameter)
(element_spec
(declarator) @variable.member)