1
0
mirror of https://github.com/helix-editor/helix synced 2024-11-10 10:34:45 +01:00
helix/runtime/queries/devicetree/highlights.scm

67 lines
635 B
Scheme

[
"/dts-v1/"
"/memreserve/"
"/delete-node/"
"/delete-property/"
] @keyword
[
"#define"
"#include"
] @keyword.directive
[
"!"
"~"
"-"
"+"
"*"
"/"
"%"
"||"
"&&"
"|"
"^"
"&"
"=="
"!="
">"
">="
"<="
">"
"<<"
">>"
] @operator
[
","
";"
] @punctuation.delimiter
[
"("
")"
"{"
"}"
"<"
">"
] @punctuation.bracket
(string_literal) @string
(integer_literal) @constant.numeric.integer
(call_expression
function: (identifier) @function)
(labeled_item
label: (identifier) @label)
(identifier) @variable
(unit_address) @tag
(reference) @constant
(comment) @comment