neovim/runtime/lua/vim/treesitter
Jongwook Choi 800134ea5e refactor(treesitter): typing for Query, TSQuery, and TSQueryInfo
- `TSQuery`: userdata object for parsed query.

- `vim.treesitter.Query`: renamed from `Query`.
  - Add a new field `lang`.

- `TSQueryInfo`:
  - Move to `vim/treesitter/_meta.lua`, because C code owns it.
  - Correct typing for `patterns`, should be a map from `integer`
    (pattern_id) to `(integer|string)[][]` (list of predicates or
    directives).

- `vim.treesitter.QueryInfo` is added.
  - This currently has the same structure as `TSQueryInfo` (exported
    from C code).
  - Document the fields (see `TSQuery:inspect`).

- Add typing for `vim._ts_parse_query()`.
2024-02-08 12:40:16 +00:00
..
_fold.lua revert: "feat(treesitter): add foldtext with treesitter highlighting" 2024-01-27 08:38:56 +08:00
_meta.lua refactor(treesitter): typing for Query, TSQuery, and TSQueryInfo 2024-02-08 12:40:16 +00:00
_query_linter.lua fix(treesitter): avoid # of nil in _query_linter 2024-01-24 11:03:54 +00:00
_range.lua feat(treesitter)!: incremental injection parsing 2023-08-12 16:11:36 +01:00
dev.lua feat(treesitter): show root nodes in :InspectTree (#26944) 2024-02-06 14:51:53 -06:00
health.lua refactor: create function for deferred loading 2024-02-03 16:53:41 +01:00
highlighter.lua refactor(treesitter): typing for Query, TSQuery, and TSQueryInfo 2024-02-08 12:40:16 +00:00
language.lua refactor: create function for deferred loading 2024-02-03 16:53:41 +01:00
languagetree.lua fix(treesitter): validate language alias for injections 2024-01-18 15:46:08 +01:00
query.lua refactor(treesitter): typing for Query, TSQuery, and TSQueryInfo 2024-02-08 12:40:16 +00:00