You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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