From f5c4671bfbad96bf346bd7e9a21fc4317b4959df Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sat, 3 Dec 2022 17:00:20 +0530 Subject: Adds most of the tools --- .../runtime/queries/tsq/highlights.scm | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 helix-22.03-x86_64-windows/runtime/queries/tsq/highlights.scm (limited to 'helix-22.03-x86_64-windows/runtime/queries/tsq/highlights.scm') diff --git a/helix-22.03-x86_64-windows/runtime/queries/tsq/highlights.scm b/helix-22.03-x86_64-windows/runtime/queries/tsq/highlights.scm new file mode 100644 index 0000000..549895c --- /dev/null +++ b/helix-22.03-x86_64-windows/runtime/queries/tsq/highlights.scm @@ -0,0 +1,46 @@ +; mark the string passed #match? as a regex +(((predicate_name) @function + (capture) + (string) @string.regexp) + (#eq? @function "#match?")) + +; highlight inheritance comments +((query . (comment) @keyword.directive) + (#match? @keyword.directive "^;\ +inherits *:")) + +[ + "(" + ")" + "[" + "]" +] @punctuation.bracket + +":" @punctuation.delimiter + +[ + (one_or_more) + (zero_or_one) + (zero_or_more) +] @operator + +[ + (wildcard_node) + (anchor) +] @constant.builtin + +[ + (anonymous_leaf) + (string) +] @string + +(comment) @comment + +(field_name) @variable.other.member + +(capture) @label + +(predicate_name) @function + +(escape_sequence) @constant.character.escape + +(node_name) @variable -- cgit v1.2.3