diff options
author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2023-08-16 15:02:15 +0900 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2023-08-16 08:18:03 +0100 |
commit | 54be7d6b45a9ae51c218c0e5c1c20dd608b97297 (patch) | |
tree | 725581f39d8fcc67cd527903083c76be14093fcf | |
parent | 0c23525b59d259b29c0026ecfa14109d05857254 (diff) | |
download | rneovim-54be7d6b45a9ae51c218c0e5c1c20dd608b97297.tar.gz rneovim-54be7d6b45a9ae51c218c0e5c1c20dd608b97297.tar.bz2 rneovim-54be7d6b45a9ae51c218c0e5c1c20dd608b97297.zip |
docs(lua): add missing fields to treesitter/_meta
According to `:h TSNode` docs, there's also `TSNode:sexpr()` and
`TSNode:has_error()` that is part of `TSNode` class, but this wasn't
documented in `treesitter/_meta.lua`.
Adding missing fields in so the types is similar to `:h TSNode`
-rw-r--r-- | runtime/lua/vim/treesitter/_meta.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/lua/vim/treesitter/_meta.lua b/runtime/lua/vim/treesitter/_meta.lua index d8babc9402..9a94f12c16 100644 --- a/runtime/lua/vim/treesitter/_meta.lua +++ b/runtime/lua/vim/treesitter/_meta.lua @@ -25,6 +25,8 @@ ---@field prev_named_sibling fun(self: TSNode): TSNode? ---@field named_children fun(self: TSNode): TSNode[] ---@field has_changes fun(self: TSNode): boolean +---@field has_error fun(self: TSNode): boolean +---@field sexpr fun(self: TSNode): string ---@field equal fun(self: TSNode, other: TSNode): boolean ---@field iter_children fun(self: TSNode): fun(): TSNode, string local TSNode = {} |