diff options
author | Christian Clason <c.clason@uni-graz.at> | 2023-02-21 17:00:48 +0100 |
---|---|---|
committer | Christian Clason <c.clason@uni-graz.at> | 2023-02-23 10:24:15 +0100 |
commit | 1c37553476f268d08d290dfee1fa3da4135b54b4 (patch) | |
tree | cf8dbabf90e71f0f395977954b11026c7c425c1c | |
parent | 05de0f4fea237132ff3a9a5a35e9c711c4ece579 (diff) | |
download | rneovim-1c37553476f268d08d290dfee1fa3da4135b54b4.tar.gz rneovim-1c37553476f268d08d290dfee1fa3da4135b54b4.tar.bz2 rneovim-1c37553476f268d08d290dfee1fa3da4135b54b4.zip |
test(help): drop treesitter parse error to 0
All parser errors have been fixed; make sure we don't introduce new
ones.
-rw-r--r-- | runtime/doc/treesitter. | 0 | ||||
-rw-r--r-- | runtime/doc/treesitter.txt | 4 | ||||
-rw-r--r-- | test/functional/lua/help_spec.lua | 5 |
3 files changed, 4 insertions, 5 deletions
diff --git a/runtime/doc/treesitter. b/runtime/doc/treesitter. new file mode 100644 index 0000000000..e69de29bb2 --- /dev/null +++ b/runtime/doc/treesitter. diff --git a/runtime/doc/treesitter.txt b/runtime/doc/treesitter.txt index 16de49029e..99fe55b6cb 100644 --- a/runtime/doc/treesitter.txt +++ b/runtime/doc/treesitter.txt @@ -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 Parameters: ~ - • {node_or_range} (|TSNode||table) Node or table of positions + • {node_or_range} (|TSNode| | table) Node or table of positions Return: ~ (integer) start_row @@ -1017,7 +1017,7 @@ LanguageTree:named_node_for_range({self}, {range}, {opts}) • {self} Return: ~ - |TSNode||nil Found node + |TSNode| | nil Found node LanguageTree:parse({self}) *LanguageTree:parse()* Parses all defined regions using a treesitter parser for the language this diff --git a/test/functional/lua/help_spec.lua b/test/functional/lua/help_spec.lua index b396e2ba30..d66d9f7fbe 100644 --- a/test/functional/lua/help_spec.lua +++ b/test/functional/lua/help_spec.lua @@ -21,9 +21,8 @@ describe(':help docs', function() ok(rv.helpfiles > 100, '>100 :help files', rv.helpfiles) 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 < 250, '<250 parse errors', rv.err_count) + -- Check that parse errors did not increase. + ok(rv.err_count == 0, 'no parse errors', rv.err_count) end) it('gen_help_html.lua generates HTML', function() |