mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
* Add devicetree parser with queries
* [docgen] Update README.md
skip-checks: true
* queries/devicetree: update highlight capture groups
* minor fix in CONTRIBUTING.md
* Revert "minor fix in CONTRIBUTING.md"
This reverts commit 23622b49db.
* queries/devicetree: add self as maintainer
* [docgen] Update README.md
skip-checks: true
Co-authored-by: Github Actions <actions@github>
35 lines
674 B
Scheme
35 lines
674 B
Scheme
(comment) @comment
|
|
|
|
[
|
|
(preproc_include)
|
|
(dtsi_include)
|
|
] @include
|
|
|
|
(preproc_def) @constant.macro
|
|
(preproc_function_def) @function.macro
|
|
|
|
[
|
|
(memory_reservation)
|
|
(file_version)
|
|
] @attribute
|
|
|
|
[
|
|
(string_literal)
|
|
(byte_string_literal)
|
|
(system_lib_string)
|
|
] @string
|
|
|
|
(integer_literal) @number
|
|
|
|
(identifier) @variable
|
|
(node (identifier) @namespace)
|
|
(property (identifier) @property)
|
|
(labeled_item (identifier) @label)
|
|
(call_expression (identifier) @function.macro)
|
|
|
|
(reference) @label ; referencing labeled_item.identifier
|
|
(unit_address) @constant
|
|
|
|
[ "=" ] @operator
|
|
[ "(" ")" "[" "]" "{" "}" "<" ">" ] @punctuation.bracket
|
|
[ ";" ":" "," "@" ] @punctuation.delimiter
|