|
|
@ -5,7 +5,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
(ambient_declaration "global" @namespace)
|
|
|
|
(ambient_declaration "global" @namespace)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Variables
|
|
|
|
; Variables
|
|
|
|
|
|
|
|
|
|
|
|
(required_parameter (identifier) @variable.parameter)
|
|
|
|
(required_parameter (identifier) @variable.parameter)
|
|
|
@ -22,8 +21,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
(conditional_type ["?" ":"] @operator)
|
|
|
|
(conditional_type ["?" ":"] @operator)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Keywords
|
|
|
|
; Keywords
|
|
|
|
|
|
|
|
|
|
|
|
[
|
|
|
|
[
|
|
|
@ -50,16 +47,22 @@
|
|
|
|
"readonly"
|
|
|
|
"readonly"
|
|
|
|
] @keyword.storage.modifier
|
|
|
|
] @keyword.storage.modifier
|
|
|
|
|
|
|
|
|
|
|
|
; inherits: ecma
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; Types
|
|
|
|
; Types
|
|
|
|
|
|
|
|
|
|
|
|
(type_identifier) @type
|
|
|
|
(type_identifier) @type
|
|
|
|
(predefined_type) @type.builtin
|
|
|
|
(predefined_type) @type.builtin
|
|
|
|
|
|
|
|
|
|
|
|
(type_arguments
|
|
|
|
(type_arguments
|
|
|
|
"<" @punctuation.bracket
|
|
|
|
[
|
|
|
|
">" @punctuation.bracket)
|
|
|
|
"<"
|
|
|
|
|
|
|
|
">"
|
|
|
|
|
|
|
|
] @punctuation.bracket)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(type_parameters
|
|
|
|
|
|
|
|
[
|
|
|
|
|
|
|
|
"<"
|
|
|
|
|
|
|
|
">"
|
|
|
|
|
|
|
|
] @punctuation.bracket)
|
|
|
|
|
|
|
|
|
|
|
|
((identifier) @type
|
|
|
|
((identifier) @type
|
|
|
|
(#match? @type "^[A-Z]"))
|
|
|
|
(#match? @type "^[A-Z]"))
|
|
|
@ -75,3 +78,5 @@
|
|
|
|
(template_type
|
|
|
|
(template_type
|
|
|
|
"${" @punctuation.special
|
|
|
|
"${" @punctuation.special
|
|
|
|
"}" @punctuation.special) @embedded
|
|
|
|
"}" @punctuation.special) @embedded
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
; inherits: ecma
|
|
|
|