comparison 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
comparison
equal deleted inserted replaced
29537:a61fbf5cc251 29538:af4ffc4b2a26
139 " Test for ++t argument 139 " Test for ++t argument
140 helptags ++t Xdir 140 helptags ++t Xdir
141 call assert_equal(["help-tags\ttags\t1"], readfile('Xdir/tags')) 141 call assert_equal(["help-tags\ttags\t1"], readfile('Xdir/tags'))
142 call delete('Xdir/tags') 142 call delete('Xdir/tags')
143 143
144 " Test parsing tags
145 call writefile(['*tag1*', 'Example: >', ' *notag*', 'Example end: *tag2*'],
146 \ 'Xdir/a/doc/sample.txt')
147 helptags Xdir
148 call assert_equal(["tag1\ta/doc/sample.txt\t/*tag1*",
149 \ "tag2\ta/doc/sample.txt\t/*tag2*"], readfile('Xdir/tags'))
150
144 " Duplicate tags in the help file 151 " Duplicate tags in the help file
145 call writefile(['*tag1*', '*tag1*', '*tag2*'], 'Xdir/a/doc/sample.txt') 152 call writefile(['*tag1*', '*tag1*', '*tag2*'], 'Xdir/a/doc/sample.txt')
146 call assert_fails('helptags Xdir', 'E154:') 153 call assert_fails('helptags Xdir', 'E154:')
147 154
148 call delete('Xdir', 'rf') 155 call delete('Xdir', 'rf')