mirror of https://github.com/Wilfred/difftastic/
Remove unnecessary symlink for highlight query
parent
1bbcb20040
commit
4f96f2bc94
@ -1 +0,0 @@
|
|||||||
../tree-sitter-devicetree/queries/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
|
||||||
@ -1,78 +0,0 @@
|
|||||||
[
|
|
||||||
"/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
|
|
||||||
Loading…
Reference in New Issue