euclidianAce / ltreesitter

Standalone tree sitter bindings for the Lua language
MIT License
85 stars 4 forks source link

Function-like predicates being ran when conditional predicates return false #26

Closed xcb-xwii closed 10 months ago

xcb-xwii commented 10 months ago

The current behaviour (stated in title) seems undesirable. If a conditional predicate prevents a capture from being returned, I think that the function-like predicates should be omitted as well. This would allow predicates such as #set! used by nvim to be implemented much more easily.

Seems like an obvious change to make to me, but it is breaking, so I would like to ask for an opinion first before trying to implement it.

xcb-xwii commented 10 months ago

Closed, I realise that there is a viable workaround and it is on the to-do list.