mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Fix elixir @function captures
When viewing the previous rule in the `TSPlayground` the `@function` captures were not actually matching. This led all functions to get the `@function.call` group applied to them. This change makes it so that the capture now works and where functions are defined will get the `@function` group.
This commit is contained in:
parent
028b7dfbdd
commit
a744ed1b27
1 changed files with 4 additions and 3 deletions
|
|
@ -111,9 +111,10 @@
|
|||
"defp"
|
||||
"defprotocol"
|
||||
"defstruct"
|
||||
)) (arguments [
|
||||
(identifier) @function
|
||||
(binary_operator left: (identifier) @function operator: "when")])?)
|
||||
))
|
||||
(arguments [
|
||||
(call (identifier) @function)
|
||||
(binary_operator left: (call target: (identifier) @function) operator: "when")])?)
|
||||
|
||||
; Kernel Keywords & Special Forms
|
||||
(call target: ((identifier) @keyword (#any-of? @keyword
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue