diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2022-10-20 09:20:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-20 06:20:02 -0700 |
commit | e6917306f6d3ba99747d14bea3f0b078631c5c0e (patch) | |
tree | 8a8e52c0f2452718d67a451a3ad19efb01569573 /test/functional/lua/help_spec.lua | |
parent | e33995e936c57064bf5629f6b527bfc1b77f77f8 (diff) | |
download | rneovim-e6917306f6d3ba99747d14bea3f0b078631c5c0e.tar.gz rneovim-e6917306f6d3ba99747d14bea3f0b078631c5c0e.tar.bz2 rneovim-e6917306f6d3ba99747d14bea3f0b078631c5c0e.zip |
docs: update vimdoc parser #20747
Remove the user-manual ToC from help.txt, because:
1. it duplicates usr_toc.txt
2. it is not what most readers are looking for in the main help page.
fix https://github.com/neovim/tree-sitter-vimdoc/issues/49
fix https://github.com/neovim/tree-sitter-vimdoc/issues/50
fix https://github.com/neovim/tree-sitter-vimdoc/issues/51
Diffstat (limited to 'test/functional/lua/help_spec.lua')
-rw-r--r-- | test/functional/lua/help_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/lua/help_spec.lua b/test/functional/lua/help_spec.lua index f5e67ec636..b396e2ba30 100644 --- a/test/functional/lua/help_spec.lua +++ b/test/functional/lua/help_spec.lua @@ -19,11 +19,11 @@ describe(':help docs', function() local rv = exec_lua([[return require('scripts.gen_help_html').validate('./build/runtime/doc')]]) -- Check that we actually found helpfiles. ok(rv.helpfiles > 100, '>100 :help files', rv.helpfiles) - eq({}, rv.invalid_links, 'found invalid :help tag links') - eq({}, rv.invalid_urls, 'found invalid URLs in :help docs') + eq({}, rv.invalid_links, 'invalid tags in :help docs') + eq({}, rv.invalid_urls, 'invalid URLs in :help docs') -- Check that parse errors did not increase wildly. -- TODO: Fix all parse errors in :help files. - ok(rv.err_count < 350, '<350 parse errors', rv.err_count) + ok(rv.err_count < 250, '<250 parse errors', rv.err_count) end) it('gen_help_html.lua generates HTML', function() @@ -44,7 +44,7 @@ describe(':help docs', function() tmpdir ) eq(4, #rv.helpfiles) - ok(rv.err_count < 25, '<25 parse errors', rv.err_count) - eq({}, rv.invalid_links, 'found invalid :help tag links') + eq(0, rv.err_count, 'parse errors in :help docs') + eq({}, rv.invalid_links, 'invalid tags in :help docs') end) end) |