1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 06:30:03 +08:00
SpaceVim/bundle/nvim-treesitter/queries/devicetree/highlights.scm
2022-04-14 12:01:23 +08:00

36 lines
674 B
Scheme
Vendored

(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