diff --git a/.config/helix/runtime/queries/devicetree/highlights.scm b/.config/helix/runtime/queries/devicetree/highlights.scm new file mode 100644 index 00000000..52e40fd7 --- /dev/null +++ b/.config/helix/runtime/queries/devicetree/highlights.scm @@ -0,0 +1,78 @@ +[ + "/delete-node/" + "/delete-property/" + "/dts-v1/" + "/incbin/" + "/include/" + "/memreserve/" + "/omit-if-no-ref/" + "#define" + "#undef" + "#include" + "#if" + "#elif" + "#else" + "#endif" + "#ifdef" + "#ifndef" +] @keyword + +[ + "!" + "~" + "-" + "+" + "*" + "/" + "%" + "||" + "&&" + "|" + "^" + "&" + "==" + "!=" + ">" + ">=" + "<=" + ">" + "<<" + ">>" +] @operator + +[ + "," + ";" +] @punctuation.delimiter + +[ + "(" + ")" + "{" + "}" + "<" + ">" +] @punctuation.bracket + +(call_expression + function: (identifier) @function) + +(node + label: (identifier) @label) + +(property + label: (identifier) @label) + +(memory_reservation + label: (identifier) @label) + +(property + name: (identifier) @property) + +(identifier) @variable + +(unit_address) @tag + +(reference) @constant + +(comment) @comment