diff options
author | Jongwook Choi <wookayin@gmail.com> | 2024-01-25 13:27:48 -0500 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-02-08 12:40:16 +0000 |
commit | 800134ea5ec60338a40280c8536db6a6a4a10249 (patch) | |
tree | 695df1b799773453b362d7c941450e3f81c5a2e4 /runtime/lua/vim/glob.lua | |
parent | 8b21fe83daf5e04afda6a2edf91e9258530124d8 (diff) | |
download | rneovim-800134ea5ec60338a40280c8536db6a6a4a10249.tar.gz rneovim-800134ea5ec60338a40280c8536db6a6a4a10249.tar.bz2 rneovim-800134ea5ec60338a40280c8536db6a6a4a10249.zip |
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()`.
Diffstat (limited to 'runtime/lua/vim/glob.lua')
0 files changed, 0 insertions, 0 deletions