mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
feat(predicates)!: rename has-type to kind-eq to align with Helix
No point in having a different name for the same predicate.
This commit is contained in:
parent
deb76a224a
commit
a80fe081b4
8 changed files with 16 additions and 16 deletions
|
|
@ -29,15 +29,15 @@
|
|||
|
||||
(arrow_function
|
||||
body: (_) @_body
|
||||
(#not-has-type? @_body statement_block)) @indent.begin
|
||||
(#not-kind-eq? @_body "statement_block")) @indent.begin
|
||||
|
||||
(assignment_expression
|
||||
right: (_) @_right
|
||||
(#not-has-type? @_right arrow_function function)) @indent.begin
|
||||
(#not-kind-eq? @_right "arrow_function" "function")) @indent.begin
|
||||
|
||||
(variable_declarator
|
||||
value: (_) @_value
|
||||
(#not-has-type? @_value arrow_function call_expression function)) @indent.begin
|
||||
(#not-kind-eq? @_value "arrow_function" "call_expression" "function")) @indent.begin
|
||||
|
||||
(arguments
|
||||
")" @indent.end)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue