mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
49 lines
722 B
Scheme
49 lines
722 B
Scheme
; inherits: ecma
|
|
[
|
|
"abstract"
|
|
"declare"
|
|
"enum"
|
|
"export"
|
|
"implements"
|
|
"interface"
|
|
"keyof"
|
|
"namespace"
|
|
"private"
|
|
"protected"
|
|
"public"
|
|
"type"
|
|
"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)
|
|
|
|
(property_signature "?" @punctuation.special)
|
|
(optional_parameter "?" @punctuation.special)
|
|
|
|
; Variables
|
|
|
|
(undefined) @variable.builtin
|
|
|
|
(required_parameter (identifier) @parameter)
|
|
(optional_parameter (identifier) @parameter)
|