mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 10:26:42 +10:00
feat(treesitter): add more metadata to language.inspect() (#32657)
Problem: No way to check the version of a treesitter parser. Solution: Add version metadata (ABI 15 parsers only) as well as parser state count and supertype information (ABI 15) in `vim.treesitter.language.inspect()`. Also graduate the `abi_version` field, as this is now the official upstream name. --------- Co-authored-by: Christian Clason <c.clason@uni-graz.at>
This commit is contained in:
@@ -35,7 +35,7 @@ function M.check()
|
||||
else
|
||||
local lang = ts.language.inspect(parsername)
|
||||
health.ok(
|
||||
string.format('Parser: %-20s ABI: %d, path: %s', parsername, lang._abi_version, parser)
|
||||
string.format('Parser: %-20s ABI: %d, path: %s', parsername, lang.abi_version, parser)
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user