Mercurial > vim
diff src/testdir/test_help.vim @ 29538:af4ffc4b2a26 v9.0.0110
patch 9.0.0110: help tag generation picks up words in code examples
Commit: https://github.com/vim/vim/commit/ddab3ce3457aadffb16ce0127f67a99966a065a8
Author: Carlo Teubner <carlo@cteubner.net>
Date: Sat Jul 30 12:03:16 2022 +0100
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 https://github.com/vim/vim/issues/10813)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Jul 2022 13:15:03 +0200 |
parents | 264fa41e6704 |
children | d891115c0aea |
line wrap: on
line diff
--- a/src/testdir/test_help.vim +++ b/src/testdir/test_help.vim @@ -141,6 +141,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:')