mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
highlights(lua): Fix method calls
The usual `function_call` query would highlight the objects at the beginning of a method call. The `method` query has to account for this, and highlight the identifier as a variable again.
This commit is contained in:
parent
4c64b3283d
commit
0ed69e50a8
1 changed files with 1 additions and 1 deletions
|
|
@ -131,9 +131,9 @@
|
|||
(function_definition ["function" "end"] @keyword.function)
|
||||
|
||||
(property_identifier) @property
|
||||
(method) @method
|
||||
|
||||
(function_call (identifier) @function . (arguments))
|
||||
(function_call [(identifier) @variable (_)] (method) @method . (arguments))
|
||||
(function_call (field_expression (property_identifier) @function) . (arguments))
|
||||
|
||||
;; Parameters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue