mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 12:30:01 -04:00
124 lines
1.3 KiB
Scheme
124 lines
1.3 KiB
Scheme
; Preproc (?)
|
|
|
|
(unique_id) @preproc
|
|
|
|
; Includes
|
|
|
|
[
|
|
"import"
|
|
"$import"
|
|
"embed"
|
|
] @include
|
|
|
|
(import_path) @string
|
|
|
|
; Types
|
|
|
|
(primitive_type) @type.builtin
|
|
|
|
[
|
|
"annotation"
|
|
"enum"
|
|
"group"
|
|
"interface"
|
|
"List"
|
|
"struct"
|
|
"union"
|
|
] @type.builtin
|
|
|
|
; Typedefs
|
|
|
|
(type_definition) @type.definition
|
|
|
|
; Labels (@number, @number!)
|
|
|
|
(field_version) @label
|
|
|
|
; Methods
|
|
|
|
(method_identifier) @method
|
|
|
|
; Fields
|
|
|
|
(field_identifier) @field
|
|
|
|
; Parameters
|
|
|
|
(param_identifier) @parameter
|
|
(return_identifier) @parameter
|
|
|
|
; Variables
|
|
|
|
(identifier) @variable
|
|
|
|
; Constants
|
|
|
|
(const_identifier) @constant
|
|
(enum_member) @constant
|
|
|
|
; Types
|
|
|
|
(enum_identifier) @type
|
|
(extend_type) @type
|
|
(field_type) @type
|
|
(generic_identifier) @type
|
|
(type_identifier) @type
|
|
|
|
; Attributes
|
|
|
|
(attribute) @attribute
|
|
(annotation_identifier) @attribute
|
|
|
|
; Operators
|
|
|
|
[
|
|
; @ ! -
|
|
"="
|
|
] @operator
|
|
|
|
; Keywords
|
|
|
|
[
|
|
"extends"
|
|
"namespace"
|
|
"using"
|
|
] @keyword
|
|
|
|
; Literals
|
|
|
|
(string_literal) @string
|
|
|
|
(data_string) @string.special
|
|
(namespace) @string.special
|
|
|
|
(number) @number
|
|
|
|
(float) @float
|
|
|
|
(boolean) @boolean
|
|
|
|
; Misc
|
|
|
|
[
|
|
"const"
|
|
] @type.qualifier
|
|
|
|
[
|
|
"*"
|
|
] @punctuation.special
|
|
|
|
["{" "}"] @punctuation.bracket
|
|
|
|
["(" ")"] @punctuation.bracket
|
|
|
|
["[" "]"] @punctuation.bracket
|
|
|
|
[
|
|
","
|
|
";"
|
|
"->"
|
|
] @punctuation.delimiter
|
|
|
|
; Comments
|
|
|
|
(comment) @comment @spell
|