diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-12-03 20:46:01 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2022-12-03 21:21:47 +0800 |
commit | bf4bf7f9e034ca2262e53e347ecb87054aa688d7 (patch) | |
tree | 3d3c871422999d8288a531f59d187c1e5411aefc /src/nvim/testdir/test_help.vim | |
parent | 3838ee63d0af8021b506b8d1c3bb9a4ce961fb8c (diff) | |
download | rneovim-bf4bf7f9e034ca2262e53e347ecb87054aa688d7.tar.gz rneovim-bf4bf7f9e034ca2262e53e347ecb87054aa688d7.tar.bz2 rneovim-bf4bf7f9e034ca2262e53e347ecb87054aa688d7.zip |
vim-patch:9.0.0110: help tag generation picks up words in code examples
Problem: Help tag generation picks up words in code examples.
Solution: Skip over examples. (Carlo Teubner, closes vim/vim#10813)
https://github.com/vim/vim/commit/ddab3ce3457aadffb16ce0127f67a99966a065a8
Also fix mistakes in help files.
Co-authored-by: Carlo Teubner <carlo@cteubner.net>
Diffstat (limited to 'src/nvim/testdir/test_help.vim')
-rw-r--r-- | src/nvim/testdir/test_help.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_help.vim b/src/nvim/testdir/test_help.vim index 6cebc49b61..08dd3dcb9a 100644 --- a/src/nvim/testdir/test_help.vim +++ b/src/nvim/testdir/test_help.vim @@ -156,6 +156,13 @@ func Test_helptag_cmd() call assert_equal(["help-tags\ttags\t1"], readfile('Xdir/tags')) call delete('Xdir/tags') + " Test parsing tags + call writefile(['*tag1*', 'Example: >', ' *notag*', 'Example end: *tag2*'], + \ 'Xdir/a/doc/sample.txt') + helptags Xdir + call assert_equal(["tag1\ta/doc/sample.txt\t/*tag1*", + \ "tag2\ta/doc/sample.txt\t/*tag2*"], readfile('Xdir/tags')) + " Duplicate tags in the help file call writefile(['*tag1*', '*tag1*', '*tag2*'], 'Xdir/a/doc/sample.txt') call assert_fails('helptags Xdir', 'E154:') |