aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRiley Bruins <ribru17@hotmail.com>2024-09-14 12:57:33 -0700
committerChristian Clason <c.clason@uni-graz.at>2024-09-28 00:31:45 +0200
commit0f067cd34d09b38f9aaf2e1732d825e89b573077 (patch)
tree7caddf3ad6975ea08f82e6a05a25416c66697a1a /scripts
parent7b71fdbc1e9fcb71e642e67e0ac9a2711dd67df0 (diff)
downloadrneovim-0f067cd34d09b38f9aaf2e1732d825e89b573077.tar.gz
rneovim-0f067cd34d09b38f9aaf2e1732d825e89b573077.tar.bz2
rneovim-0f067cd34d09b38f9aaf2e1732d825e89b573077.zip
fix(treesitter): suppress get_parser warnings via opts.error
Diffstat (limited to 'scripts')
-rw-r--r--scripts/gen_help_html.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gen_help_html.lua b/scripts/gen_help_html.lua
index f088f706d6..6751fd7ca7 100644
--- a/scripts/gen_help_html.lua
+++ b/scripts/gen_help_html.lua
@@ -802,7 +802,7 @@ local function parse_buf(fname, text, parser_path)
if parser_path then
vim.treesitter.language.add('vimdoc', { path = parser_path })
end
- local lang_tree = assert(vim.treesitter._get_parser(buf), 'vimdoc parser not found.')
+ local lang_tree = assert(vim.treesitter.get_parser(buf, nil, { error = false }))
return lang_tree, buf
end