mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -04:00
63 lines
1.1 KiB
Scheme
63 lines
1.1 KiB
Scheme
(unit
|
|
(identifier) @variable)
|
|
(string
|
|
(identifier) @variable)
|
|
|
|
(escape_sequence) @string.escape
|
|
|
|
(block
|
|
(unit
|
|
(identifier) @namespace))
|
|
|
|
(func
|
|
(identifier) @function)
|
|
|
|
(number) @number
|
|
|
|
((identifier) @boolean
|
|
(#any-of? @boolean "true" "false" "True" "False"))
|
|
|
|
((identifier) @constant
|
|
(#lua-match? @constant "^[A-Z][A-Z%d_]*$"))
|
|
|
|
((identifier) @type.definition
|
|
(#any-of? @type.definition
|
|
"string"
|
|
"String"
|
|
"void"
|
|
"id"
|
|
"version"
|
|
"apply"
|
|
"implementation"
|
|
"testImplementation"
|
|
"androidTestImplementation"
|
|
"debugImplementation"))
|
|
|
|
((identifier) @keyword
|
|
(#any-of? @keyword
|
|
"static"
|
|
"class"
|
|
"def"
|
|
"import"
|
|
"new"))
|
|
|
|
(string) @string
|
|
|
|
[
|
|
(line_comment)
|
|
(block_comment)
|
|
] @comment @spell
|
|
|
|
((block_comment) @comment.documentation
|
|
(#lua-match? @comment.documentation "^/[*][*][^*].*[*]/$"))
|
|
|
|
((line_comment) @comment.documentation
|
|
(#lua-match? @comment.documentation "^///[^/]"))
|
|
|
|
((line_comment) @comment.documentation
|
|
(#lua-match? @comment.documentation "^///$"))
|
|
|
|
(operators) @operator
|
|
(leading_key) @operator
|
|
|
|
["(" ")" "[" "]" "{" "}"] @punctuation.bracket
|