mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 04:50:03 -04:00
43 lines
544 B
Scheme
43 lines
544 B
Scheme
;;;; Simple tokens ;;;;
|
|
(terminal) @string.grammar
|
|
|
|
(special_sequence) @string.special.grammar
|
|
|
|
(integer) @number
|
|
|
|
(comment) @comment
|
|
|
|
;;;; Identifiers ;;;;
|
|
|
|
; Allow different highlighting for specific casings
|
|
((identifier) @type
|
|
(#match? @type "^[A-Z]"))
|
|
|
|
((identifier) @symbol
|
|
(#match? @symbol "^[a-z]"))
|
|
|
|
((identifier) @constant
|
|
(#match? @constant "^[A-Z][A-Z0-9_]+$"))
|
|
|
|
;;; Punctuation ;;;;
|
|
[
|
|
";"
|
|
","
|
|
] @punctuation.delimiter
|
|
|
|
[
|
|
"|"
|
|
"*"
|
|
"-"
|
|
] @operator
|
|
|
|
"=" @keyword.operator
|
|
|
|
[
|
|
"("
|
|
")"
|
|
"["
|
|
"]"
|
|
"{"
|
|
"}"
|
|
] @punctuation.bracket
|