mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 06:50:06 -04:00
87 lines
950 B
Scheme
87 lines
950 B
Scheme
(comment) @comment
|
||
|
||
; identifiers eel
|
||
|
||
(eel_object_path
|
||
(eel_path_identifier) @variable)
|
||
|
||
(eel_object_pair
|
||
key: (eel_property_name) @property)
|
||
|
||
(eel_method_name) @function
|
||
|
||
(eel_parameter) @variable
|
||
|
||
|
||
|
||
; identifiers fusion
|
||
; -----------
|
||
|
||
(path_part) @property
|
||
(meta_property) @attribute
|
||
(prototype_signature
|
||
"prototype" @keyword
|
||
|
||
)
|
||
(include_statement
|
||
"include" @include
|
||
":" @punctation.delimiter
|
||
(source_file) @uri
|
||
)
|
||
|
||
(namespace_declaration
|
||
"namespace" @keyword
|
||
(alias_namespace) @namespace)
|
||
|
||
(identifier_type
|
||
name: (type_name) @type)
|
||
|
||
; tokens
|
||
; ------
|
||
|
||
[
|
||
(identifier_package)
|
||
(alias_namespace)
|
||
] @namespace
|
||
|
||
[
|
||
"="
|
||
"<"
|
||
"&&"
|
||
"and"
|
||
"||"
|
||
"or"
|
||
"*"
|
||
"/"
|
||
"%"
|
||
"+"
|
||
"-"
|
||
"!"
|
||
"not"
|
||
(deletion)
|
||
] @operator
|
||
|
||
(string) @string
|
||
(number) @number
|
||
(boolean) @boolean
|
||
(null) @constant.builtin
|
||
|
||
|
||
; punctation
|
||
; ----------
|
||
|
||
[
|
||
"("
|
||
")"
|
||
"{"
|
||
"}"
|
||
"["
|
||
"]"
|
||
] @punctation.bracket
|
||
|
||
[
|
||
":"
|
||
"."
|
||
"?"
|
||
] @punctation.delimiter
|
||
|