mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -04:00
fix(elixir): add missing possible parameters
This commit is contained in:
parent
9be9ebda0a
commit
21a7f61b06
1 changed files with 2 additions and 15 deletions
|
|
@ -152,15 +152,7 @@
|
|||
(call (function_identifier) @keyword.function
|
||||
(call
|
||||
function: (function_identifier) @function
|
||||
(arguments
|
||||
[(identifier) @parameter
|
||||
(tuple (identifier) @parameter)
|
||||
(list (identifier) @parameter)
|
||||
(_
|
||||
(keyword_list (identifier) @parameter))
|
||||
(binary_op
|
||||
left: (identifier) @parameter
|
||||
operator: "\\\\")]))
|
||||
(arguments))
|
||||
(#lua-match? @keyword.function "^def%a*$"))
|
||||
|
||||
; Definition with (some) arguments and guard(s)
|
||||
|
|
@ -169,12 +161,7 @@
|
|||
left:
|
||||
(call
|
||||
function: (function_identifier) @function
|
||||
(arguments
|
||||
[(identifier) @parameter
|
||||
(tuple (identifier) @parameter)
|
||||
(list (identifier) @parameter)
|
||||
(_
|
||||
(keyword_list (identifier) @parameter))]))
|
||||
(arguments))
|
||||
operator: "when")
|
||||
(#lua-match? @keyword.function "^def%a*$"))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue