mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 01:10:02 -04:00
queries/devicetree: update highlight capture groups
This commit is contained in:
parent
bb4ddc31f4
commit
ea761801a8
1 changed files with 5 additions and 10 deletions
|
|
@ -5,18 +5,13 @@
|
||||||
(dtsi_include)
|
(dtsi_include)
|
||||||
] @include
|
] @include
|
||||||
|
|
||||||
[
|
(preproc_def) @constant.macro
|
||||||
(preproc_def)
|
(preproc_function_def) @function.macro
|
||||||
] @constant.macro
|
|
||||||
|
|
||||||
[
|
|
||||||
(preproc_function_def)
|
|
||||||
] @function.macro
|
|
||||||
|
|
||||||
[
|
[
|
||||||
(memory_reservation)
|
(memory_reservation)
|
||||||
(file_version)
|
(file_version)
|
||||||
] @annotation
|
] @attribute
|
||||||
|
|
||||||
[
|
[
|
||||||
(string_literal)
|
(string_literal)
|
||||||
|
|
@ -27,12 +22,12 @@
|
||||||
(integer_literal) @number
|
(integer_literal) @number
|
||||||
|
|
||||||
(identifier) @variable
|
(identifier) @variable
|
||||||
(node (identifier) @attribute)
|
(node (identifier) @namespace)
|
||||||
(property (identifier) @property)
|
(property (identifier) @property)
|
||||||
(labeled_item (identifier) @label)
|
(labeled_item (identifier) @label)
|
||||||
(call_expression (identifier) @function.macro)
|
(call_expression (identifier) @function.macro)
|
||||||
|
|
||||||
(reference) @attribute
|
(reference) @label ; referencing labeled_item.identifier
|
||||||
(unit_address) @constant
|
(unit_address) @constant
|
||||||
|
|
||||||
[ "=" ] @operator
|
[ "=" ] @operator
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue