diff --git a/queries/highlights.scm b/queries/highlights.scm new file mode 100644 index 0000000..65216b1 --- /dev/null +++ b/queries/highlights.scm @@ -0,0 +1,32 @@ +;; Numbers. +(num) @number + +;; Function names when defining. +(funcdef name: (word) @function) + +;; Function calls. +(callexp fn: (word) @function.call) + +;; Variables. +(word) @variable + +;; Parameters inside function/lambda. +(params (word) @variable.parameter) + +;; Operators. +[ + "+" + "-" + "*" + "/" + "=" +] @operator + +;; Lambdas. +"\\" @keyword + +;; Parentheses. +[ "(" ")" ] @punctuation.bracket + +;; Commas. +"," @punctuation.delimiter