mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 18:30:06 -04:00
Add getter and setter signature highlights
This commit is contained in:
parent
2ae63525dc
commit
12feef7af8
1 changed files with 7 additions and 2 deletions
|
|
@ -62,6 +62,12 @@
|
||||||
scope: (identifier) @type)
|
scope: (identifier) @type)
|
||||||
(function_signature
|
(function_signature
|
||||||
name: (identifier) @method)
|
name: (identifier) @method)
|
||||||
|
; using method_signature does not work
|
||||||
|
; so specifically use getter and setter signatures
|
||||||
|
(getter_signature
|
||||||
|
(identifier) @method)
|
||||||
|
(setter_signature
|
||||||
|
name: (identifier) @method)
|
||||||
(enum_declaration
|
(enum_declaration
|
||||||
name: (identifier) @type)
|
name: (identifier) @type)
|
||||||
(enum_constant
|
(enum_constant
|
||||||
|
|
@ -127,9 +133,8 @@
|
||||||
"const"
|
"const"
|
||||||
"async"
|
"async"
|
||||||
"await"
|
"await"
|
||||||
; "rethrow"
|
|
||||||
] @keyword
|
] @keyword
|
||||||
;TODO: var, async, await
|
;TODO:
|
||||||
; "rethrow" @keyword
|
; "rethrow" @keyword
|
||||||
|
|
||||||
["if" "else" "switch" "case"] @conditional
|
["if" "else" "switch" "case"] @conditional
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue