Added highlights.
This commit is contained in:
32
queries/highlights.scm
Normal file
32
queries/highlights.scm
Normal file
@@ -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
|
Reference in New Issue
Block a user