mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-13 08:50:11 -04:00
feat(idl): update highlight
Signed-off-by: DragonBillow <DragonBillow@outlook.com>
This commit is contained in:
parent
7ff0b8d3d2
commit
1e546c0f5e
2 changed files with 19 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue