mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
118 lines
1.2 KiB
Scheme
118 lines
1.2 KiB
Scheme
4 years ago
|
; Function calls
|
||
|
|
||
|
(call_expression
|
||
|
function: (identifier) @function)
|
||
|
|
||
|
(call_expression
|
||
|
function: (selector_expression
|
||
|
field: (field_identifier) @function.method))
|
||
|
|
||
|
; Function definitions
|
||
|
|
||
|
(function_declaration
|
||
|
name: (identifier) @function)
|
||
|
|
||
|
(method_declaration
|
||
|
name: (field_identifier) @function.method)
|
||
|
|
||
|
; Identifiers
|
||
|
|
||
|
(type_identifier) @type
|
||
|
(field_identifier) @property
|
||
|
(identifier) @variable
|
||
|
|
||
|
; Operators
|
||
|
|
||
|
[
|
||
|
"--"
|
||
|
"-"
|
||
|
"-="
|
||
|
":="
|
||
|
"!"
|
||
|
"!="
|
||
|
"..."
|
||
|
"*"
|
||
|
"*"
|
||
|
"*="
|
||
|
"/"
|
||
|
"/="
|
||
|
"&"
|
||
|
"&&"
|
||
|
"&="
|
||
|
"%"
|
||
|
"%="
|
||
|
"^"
|
||
|
"^="
|
||
|
"+"
|
||
|
"++"
|
||
|
"+="
|
||
|
"<-"
|
||
|
"<"
|
||
|
"<<"
|
||
|
"<<="
|
||
|
"<="
|
||
|
"="
|
||
|
"=="
|
||
|
">"
|
||
|
">="
|
||
|
">>"
|
||
|
">>="
|
||
|
"|"
|
||
|
"|="
|
||
|
"||"
|
||
|
] @operator
|
||
|
|
||
|
; Keywords
|
||
|
|
||
|
[
|
||
|
"break"
|
||
|
"case"
|
||
|
"chan"
|
||
|
"const"
|
||
|
"continue"
|
||
|
"default"
|
||
|
"defer"
|
||
|
"else"
|
||
|
"fallthrough"
|
||
|
"for"
|
||
|
"func"
|
||
|
"go"
|
||
|
"goto"
|
||
|
"if"
|
||
|
"import"
|
||
|
"interface"
|
||
|
"map"
|
||
|
"package"
|
||
|
"range"
|
||
|
"return"
|
||
|
"select"
|
||
|
"struct"
|
||
|
"switch"
|
||
|
"type"
|
||
|
"var"
|
||
|
] @keyword
|
||
|
|
||
|
; Literals
|
||
|
|
||
|
[
|
||
|
(interpreted_string_literal)
|
||
|
(raw_string_literal)
|
||
|
(rune_literal)
|
||
|
] @string
|
||
|
|
||
|
(escape_sequence) @escape
|
||
|
|
||
|
[
|
||
|
(int_literal)
|
||
|
(float_literal)
|
||
|
(imaginary_literal)
|
||
|
] @number
|
||
|
|
||
|
[
|
||
|
(true)
|
||
|
(false)
|
||
|
(nil)
|
||
|
] @constant.builtin
|
||
|
|
||
|
(comment) @comment
|