]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1186: filetype: help files in git repos are not detected v9.1.1186
authorDavid Mandelberg <david@mandelberg.org>
Sat, 8 Mar 2025 16:21:16 +0000 (17:21 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 8 Mar 2025 16:21:16 +0000 (17:21 +0100)
commit16d6fff98ed3a9dfd34a41696b005b0c4c7800f8
tree5eff45196e301c6426bf2cd9461d05908e874a79
parentce4f9d2a1016ade19fa07c5b66e58eb084719192
patch 9.1.1186: filetype: help files in git repos are not detected

Problem:  filetype: help files in git repos are not detected
Solution: detect */doc/*.txt files as help if they end with a help
          modeline, even if 'modeline' is off

Here's how I checked that this would still detect vim's own help files
correctly:

$ find . -type f -path '*/doc/*.txt' \
> -exec awk '{ } ENDFILE { print FILENAME ":" $0; }' '{}' + |
> grep -v 'vim:.*\<\(ft\|filetype\)=help\>'
./src/libvterm/doc/seqs.txt: 23    DECSM 42         = DECNRCM, national/multinational character

closes: #16817

Signed-off-by: David Mandelberg <david@mandelberg.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/todo.txt
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c