Files
neovim/runtime/lua/vim
Thomas Vigouroux bd5008de07 fix(treesitter): correctly handle query quantifiers (#24738)
Query patterns can contain quantifiers (e.g. (foo)+ @bar), so a single
capture can map to multiple nodes. The iter_matches API can not handle
this situation because the match table incorrectly maps capture indices
to a single node instead of to an array of nodes.

The match table should be updated to map capture indices to an array of
nodes. However, this is a massively breaking change, so must be done
with a proper deprecation period.

`iter_matches`, `add_predicate` and `add_directive` must opt-in to the
correct behavior for backward compatibility. This is done with a new
"all" option. This option will become the default and removed after the
0.10 release.

Co-authored-by: Christian Clason <c.clason@uni-graz.at>
Co-authored-by: MDeiml <matthias@deiml.net>
Co-authored-by: Gregory Anders <greg@gpanders.com>
2024-02-16 11:54:47 -06:00
..
2023-09-20 13:42:41 +01:00
2024-02-12 20:03:53 +08:00
2023-12-30 17:40:53 +01:00
2024-01-16 09:33:10 +00:00
2023-09-14 08:23:01 -05:00
2023-09-20 13:42:41 +01:00
2024-01-19 11:54:04 +00:00
2024-01-03 19:17:52 +00:00
2023-09-23 23:46:45 +01:00
2024-02-15 11:32:50 +00:00
2023-12-30 17:40:53 +01:00
2024-02-06 19:30:02 +08:00