]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1327: filetype: nroff detection can be improved v9.1.1327
authorEisuke Kawashima <e-kwsm@users.noreply.github.com>
Mon, 21 Apr 2025 08:51:05 +0000 (10:51 +0200)
committerChristian Brabandt <cb@256bit.org>
Mon, 21 Apr 2025 08:51:05 +0000 (10:51 +0200)
commit2cb42efc18e46402ac84fd51afe54bb48be8aea7
treed3365bf99b4c579aa11f272bd4b020d4d00e8e89
parent187df69fd1563535773b8ddb2de1b0f5dd3dd2e9
patch 9.1.1327: filetype: nroff detection can be improved

Problem:  filetype: nroff detection can be improved
Solution: improve nroff detection (Eisuke Kawashima)

- explicitly check roff comments and macros typically found in manpages
- do not try to detect alphabetically-sectioned files, except for n, as
  nroff
    - l: > 'l' happens to be a section for historical reasons
         <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=391977>
    - n: e.g. /usr/share/man/mann/Tcl.n.gz
    - o: unsure (perhaps fedora-specific)
    - p: unsure (perhaps fedora-specific)

closes: #17160

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