Files
tree-sitter-scl/queries/highlights.scm
2025-08-26 21:04:36 -04:00

33 lines
431 B
Scheme

;; 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