]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(filetype): improve *.h filetype detection
authorAmelia Clarke <selene@perilune.dev>
Sat, 19 Apr 2025 09:48:10 +0000 (11:48 +0200)
committerChristian Brabandt <cb@256bit.org>
Sat, 19 Apr 2025 09:48:10 +0000 (11:48 +0200)
commit3041cf67d37cc23b79b17cc2c1c09feb7c22baf7
tree4b3388c33aac2696d2d7d99cbbf3c62bc73c9c2a
parent5ecb452f5bd8bd2dd4fc2800953d5ecd9871f282
runtime(filetype): improve *.h filetype detection

This commit changes *.h files to default to C (instead of C++), and
deprecates the existing `g:c_syntax_for_h` and `g:ch_syntax_for_h`
variables in favor of a unified `g:filetype_h`, like is used for other
ambiguous file extensions.

closes: #17135

Signed-off-by: Amelia Clarke <selene@perilune.dev>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/autoload/dist/ft.vim
runtime/doc/filetype.txt
runtime/doc/syntax.txt
runtime/filetype.vim