Files
neovim/runtime/lua/vim
Lewis Russell aca2048bcd refactor(treesitter): redesign query iterating
Problem:

  `TSNode:_rawquery()` is complicated, has known issues and the Lua and
  C code is awkwardly coupled (see logic with `active`).

Solution:

  - Add `TSQueryCursor` and `TSQueryMatch` bindings.
  - Replace `TSNode:_rawquery()` with `TSQueryCursor:next_capture()` and `TSQueryCursor:next_match()`
  - Do more stuff in Lua
  - API for `Query:iter_captures()` and `Query:iter_matches()` remains the same.
  - `treesitter.c` no longer contains any logic related to predicates.
  - Add `match_limit` option to `iter_matches()`. Default is still 256.
2024-03-19 14:24:59 +00:00
..
2024-02-21 06:29:53 +08:00
2023-09-20 13:42:41 +01:00
2024-03-10 23:20:44 +00:00
2024-03-06 10:45:22 +00:00
2024-03-09 11:21:55 +00:00
2024-03-09 11:21:55 +00:00
2024-03-09 11:21:55 +00:00
2024-01-16 09:33:10 +00:00
2024-03-06 21:56:47 +00:00
2023-09-20 13:42:41 +01:00
2024-01-19 11:54:04 +00:00
2024-03-16 19:26:10 +00:00
2024-03-09 11:21:55 +00:00
2024-03-16 19:26:10 +00:00
2024-03-06 10:45:22 +00:00
2024-03-16 19:26:10 +00:00
2024-03-16 19:26:10 +00:00
2024-03-16 19:26:10 +00:00
2024-03-16 19:26:10 +00:00
2024-03-09 11:21:55 +00:00
2024-03-09 11:21:55 +00:00