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

@ -318,7 +318,7 @@
"revision": "6858695eba0e63b9e0fceef081d291eb352abce8"
},
"idl": {
"revision": "dcc727329d383145a57f8ce7209f20c19a3765c6"
"revision": "2831737ee4187af867b2febce6f35d0475a3a3ca"
},
"ini": {
"revision": "87176e524f0a98f5be75fa44f4f0ff5c6eac069c"

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)