mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 09:50:04 -04:00
highlights(kotlin): fix function highlights
This commit is contained in:
parent
d7c12db4c8
commit
74151445d0
1 changed files with 5 additions and 1 deletions
|
|
@ -118,7 +118,7 @@
|
||||||
;;; Function definitions
|
;;; Function definitions
|
||||||
|
|
||||||
(function_declaration
|
(function_declaration
|
||||||
. (simple_identifier) @function)
|
(simple_identifier) @function)
|
||||||
|
|
||||||
(getter
|
(getter
|
||||||
("get") @function.builtin)
|
("get") @function.builtin)
|
||||||
|
|
@ -154,6 +154,10 @@
|
||||||
(call_expression
|
(call_expression
|
||||||
. (simple_identifier) @function.call)
|
. (simple_identifier) @function.call)
|
||||||
|
|
||||||
|
; ::function
|
||||||
|
(callable_reference
|
||||||
|
. (simple_identifier) @function.call)
|
||||||
|
|
||||||
; object.function() or object.property.function()
|
; object.function() or object.property.function()
|
||||||
(call_expression
|
(call_expression
|
||||||
(navigation_expression
|
(navigation_expression
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue