mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 12:06:55 -04:00
53 lines
778 B
Scheme
53 lines
778 B
Scheme
; inherits: javascript
|
|
[
|
|
"abstract"
|
|
"declare"
|
|
"enum"
|
|
"export"
|
|
"implements"
|
|
"interface"
|
|
"keyof"
|
|
"namespace"
|
|
"private"
|
|
"protected"
|
|
"public"
|
|
"type"
|
|
] @keyword
|
|
|
|
(readonly) @keyword
|
|
|
|
; types
|
|
|
|
(type_identifier) @type
|
|
(predefined_type) @type.builtin
|
|
|
|
; punctuation
|
|
|
|
(type_arguments
|
|
"<" @punctuation.bracket
|
|
">" @punctuation.bracket)
|
|
|
|
(union_type
|
|
"|" @punctuation.delimiter)
|
|
|
|
(intersection_type
|
|
"&" @punctuation.delimiter)
|
|
|
|
(type_annotation
|
|
":" @punctuation.delimiter)
|
|
|
|
(pair
|
|
":" @punctuation.delimiter)
|
|
|
|
(unary_expression) @punctuation.special
|
|
|
|
(property_signature
|
|
"?" @punctuation.special)
|
|
|
|
; Variables
|
|
|
|
(shorthand_property_identifier) @variable
|
|
(undefined) @variable.builtin
|
|
|
|
(required_parameter (identifier) @parameter)
|
|
(optional_parameter (identifier) @parameter)
|