forked from Mirrors/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
514 B
Scheme
37 lines
514 B
Scheme
; inherits: javascript
|
|
|
|
; Types
|
|
|
|
(type_identifier) @type
|
|
(predefined_type) @type.builtin
|
|
|
|
((identifier) @type
|
|
(#match? @type "^[A-Z]"))
|
|
|
|
(type_arguments
|
|
"<" @punctuation.bracket
|
|
">" @punctuation.bracket)
|
|
|
|
; Variables
|
|
|
|
(required_parameter (identifier) @variable.parameter)
|
|
(optional_parameter (identifier) @variable.parameter)
|
|
|
|
; Keywords
|
|
|
|
[
|
|
"abstract"
|
|
"declare"
|
|
"enum"
|
|
"export"
|
|
"implements"
|
|
"interface"
|
|
"keyof"
|
|
"namespace"
|
|
"private"
|
|
"protected"
|
|
"public"
|
|
"type"
|
|
"readonly"
|
|
] @keyword
|