mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Problem: Allowing undocumented "secret" (sub)captures makes it harder to write comprehensive colorschemes and catch inconsistent captures. Solution: Only allow captures listed in CONTRIBUTING.md. Add useful (cross-language) subcaptures and drop language-specific or too niche ones. Follow-up: Adding further `*.builtin` captures and changing queries to use them. Language-specific subcaptures should instead be added in user config or a custom language plugin.
56 lines
499 B
Scheme
56 lines
499 B
Scheme
[
|
|
"killed"
|
|
"by"
|
|
"exited"
|
|
"with"
|
|
"<unfinished ...>"
|
|
"<..."
|
|
"resumed>"
|
|
] @keyword
|
|
|
|
[
|
|
(errorName)
|
|
(errorDescription)
|
|
] @keyword.exception
|
|
|
|
(syscall) @function.builtin
|
|
|
|
; Literals
|
|
[
|
|
(integer)
|
|
(pointer)
|
|
] @number
|
|
|
|
(value) @label
|
|
|
|
(string) @string
|
|
|
|
[
|
|
"="
|
|
"|"
|
|
"*"
|
|
"&&"
|
|
"=="
|
|
] @operator
|
|
|
|
; Punctuation
|
|
[
|
|
"+++"
|
|
"---"
|
|
"..."
|
|
"~"
|
|
] @punctuation.special
|
|
|
|
[
|
|
"("
|
|
")"
|
|
"["
|
|
"]"
|
|
] @punctuation.bracket
|
|
|
|
[
|
|
","
|
|
"=>"
|
|
] @punctuation.delimiter
|
|
|
|
(comment) @comment @spell
|