test(help): drop treesitter parse error to 0

All parser errors have been fixed; make sure we don't introduce new
ones.
This commit is contained in:
Christian Clason
2023-02-21 17:00:48 +01:00
parent 05de0f4fea
commit 1c37553476
3 changed files with 4 additions and 5 deletions

0
runtime/doc/treesitter. Normal file
View File

View File

@@ -528,7 +528,7 @@ get_node_range({node_or_range}) *vim.treesitter.get_node_range()*
Returns the node's range or an unpacked range table Returns the node's range or an unpacked range table
Parameters: ~ Parameters: ~
• {node_or_range} (|TSNode||table) Node or table of positions • {node_or_range} (|TSNode| | table) Node or table of positions
Return: ~ Return: ~
(integer) start_row (integer) start_row
@@ -1017,7 +1017,7 @@ LanguageTree:named_node_for_range({self}, {range}, {opts})
• {self} • {self}
Return: ~ Return: ~
|TSNode||nil Found node |TSNode| | nil Found node
LanguageTree:parse({self}) *LanguageTree:parse()* LanguageTree:parse({self}) *LanguageTree:parse()*
Parses all defined regions using a treesitter parser for the language this Parses all defined regions using a treesitter parser for the language this

View File

@@ -21,9 +21,8 @@ describe(':help docs', function()
ok(rv.helpfiles > 100, '>100 :help files', rv.helpfiles) ok(rv.helpfiles > 100, '>100 :help files', rv.helpfiles)
eq({}, rv.invalid_links, 'invalid tags in :help docs') eq({}, rv.invalid_links, 'invalid tags in :help docs')
eq({}, rv.invalid_urls, 'invalid URLs in :help docs') eq({}, rv.invalid_urls, 'invalid URLs in :help docs')
-- Check that parse errors did not increase wildly. -- Check that parse errors did not increase.
-- TODO: Fix all parse errors in :help files. ok(rv.err_count == 0, 'no parse errors', rv.err_count)
ok(rv.err_count < 250, '<250 parse errors', rv.err_count)
end) end)
it('gen_help_html.lua generates HTML', function() it('gen_help_html.lua generates HTML', function()