mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
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`
This commit is contained in:

committed by
Lewis Russell

parent
0c23525b59
commit
54be7d6b45
@@ -25,6 +25,8 @@
|
|||||||
---@field prev_named_sibling fun(self: TSNode): TSNode?
|
---@field prev_named_sibling fun(self: TSNode): TSNode?
|
||||||
---@field named_children fun(self: TSNode): TSNode[]
|
---@field named_children fun(self: TSNode): TSNode[]
|
||||||
---@field has_changes fun(self: TSNode): boolean
|
---@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 equal fun(self: TSNode, other: TSNode): boolean
|
||||||
---@field iter_children fun(self: TSNode): fun(): TSNode, string
|
---@field iter_children fun(self: TSNode): fun(): TSNode, string
|
||||||
local TSNode = {}
|
local TSNode = {}
|
||||||
|
Reference in New Issue
Block a user