commit 54be7d6b45a9ae51c218c0e5c1c20dd608b97297
parent 0c23525b59d259b29c0026ecfa14109d05857254
Author: Pham Huy Hoang <hoangtun0810@gmail.com>
Date: Wed, 16 Aug 2023 15:02:15 +0900
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`
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git 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 = {}