mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 03:10: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
|
|
@ -24,14 +24,14 @@
|
|||
|
||||
((for_statement
|
||||
body: (_) @_body) @indent.begin
|
||||
(#not-has-type? @_body compound_statement))
|
||||
(#not-kind-eq? @_body "compound_statement"))
|
||||
|
||||
(while_statement
|
||||
condition: (_) @indent.begin)
|
||||
|
||||
((while_statement
|
||||
body: (_) @_body) @indent.begin
|
||||
(#not-has-type? @_body compound_statement))
|
||||
(#not-kind-eq? @_body "compound_statement"))
|
||||
|
||||
((if_statement)
|
||||
.
|
||||
|
|
@ -45,7 +45,7 @@
|
|||
(if_statement
|
||||
consequence: (_
|
||||
";" @indent.end) @_consequence
|
||||
(#not-has-type? @_consequence compound_statement)
|
||||
(#not-kind-eq? @_consequence "compound_statement")
|
||||
alternative: (else_clause
|
||||
"else" @indent.branch
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue