]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1304: filetype: some man files are not recognized v9.1.1304
authorEisuke Kawashima <e-kwsm@users.noreply.github.com>
Tue, 15 Apr 2025 16:30:05 +0000 (18:30 +0200)
committerChristian Brabandt <cb@256bit.org>
Tue, 15 Apr 2025 16:30:05 +0000 (18:30 +0200)
commitbabdb0554a44a5e406a499bf8c315e660b2a028e
tree68be0c82fe07c7d177098b040fd312df36115e34
parentd62377386c92e500365009412efd3b1232a02c82
patch 9.1.1304: filetype: some man files are not recognized

Problem:  filetype: some man files are not recognized
          (e.g. 1p (POSIX commands))
Solution: update the filetype detection pattern and detect more man
          files as nroff (Eisuke Kawashima)

- sections are revised referring to
    - debian-12:/etc/manpath.config
    - fedora-41:/etc/man_db.conf
- detection logic is improved
- detection test is implemented

closes: #17117

Signed-off-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/ft.vim
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c