mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-03 03:56:52 -04:00
This implements https://github.com/neovim/neovim/pull/13059#issuecomment-704414189 This behaves like modelines and remove the use of the base_language map. Also, this allows to fine-tune what we actually want to include per query, which is better IMO.
28 lines
409 B
Scheme
28 lines
409 B
Scheme
; inherits: javascript
|
|
[
|
|
"abstract"
|
|
"declare"
|
|
"enum"
|
|
"export"
|
|
"implements"
|
|
"interface"
|
|
"keyof"
|
|
"namespace"
|
|
"private"
|
|
"protected"
|
|
"public"
|
|
"type"
|
|
] @keyword
|
|
|
|
(readonly) @keyword
|
|
(type_identifier) @type
|
|
(predefined_type) @type.builtin
|
|
|
|
(type_arguments
|
|
"<" @punctuation.bracket
|
|
">" @punctuation.bracket)
|
|
|
|
; Variables
|
|
|
|
(required_parameter (identifier) @parameter)
|
|
(optional_parameter (identifier) @parameter)
|