mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-25 10:56:19 +04:00
f843967059
Co-authored-by: Garrett D'Amore <garrett.damore@weka.io> Co-authored-by: Michael Davis <mcarsondavis@gmail.com>
63 lines
911 B
Scheme
63 lines
911 B
Scheme
(comment) @comment
|
|
|
|
; these are listed first, because they override keyword queries
|
|
(function_expression (identifier) @function)
|
|
|
|
[
|
|
(assignment_operator)
|
|
(additive_operator)
|
|
(multiplicative_operator)
|
|
(equality_operator)
|
|
">="
|
|
"<="
|
|
"<"
|
|
">"
|
|
"+"
|
|
"-"
|
|
] @operator
|
|
|
|
[
|
|
(and)
|
|
(or)
|
|
(not)
|
|
(in)
|
|
] @keyword.operator
|
|
|
|
[
|
|
"(" ")" "[" "]" "{" "}"
|
|
] @punctuation.bracket
|
|
|
|
[
|
|
(if)
|
|
(elif)
|
|
(else)
|
|
(endif)
|
|
] @keyword.control.conditional
|
|
|
|
[
|
|
(foreach)
|
|
(endforeach)
|
|
(break)
|
|
(continue)
|
|
] @keyword.control.repeat
|
|
|
|
(boolean_literal) @constant.builtin.boolean
|
|
(int_literal) @constant.numeric.integer
|
|
|
|
(keyword_argument keyword: (identifier) @variable.parameter)
|
|
(escape_sequence) @constant.character.escape
|
|
(bad_escape) @warning
|
|
|
|
[
|
|
"."
|
|
","
|
|
":"
|
|
] @punctuation.delimiter
|
|
|
|
[
|
|
(string_literal)
|
|
(fstring_literal)
|
|
] @string
|
|
|
|
(identifier) @variable
|