33 lines
431 B
Scheme
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
|