patch 9.1.0880: filetype: C3 files are not recognized Commit: https://github.com/vim/vim/commit/c8dfcfc53ba5ed69b5d4e534fd7e8694de014e6a Author: Turiiya <34311583+tt...@users.noreply.github.com> Date: Tue Nov 19 23:05:21 2024 +0100
patch 9.1.0880: filetype: C3 files are not recognized Problem: filetype: C3 files are not recognized Solution: detect '*.c3*' files as c3 filetype (Turiiya) closes: #16087 Signed-off-by: Turiiya <34311583+tt...@users.noreply.github.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 3f93bebb7..ef8c0e922 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -311,6 +311,9 @@ au BufNewFile,BufRead */.bundle/config setf yaml au BufNewFile,BufRead *.c call dist#ft#FTlpc() au BufNewFile,BufRead *.lpc,*.ulpc setf lpc +" C3 +au BufNewFile,BufRead *.c3,*.c3i,*.c3t setf c3 + " Cairo au BufNewFile,BufRead *.cairo setf cairo diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 17d6a44d7..001a970ae 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -144,6 +144,7 @@ def s:GetFilenameChecks(): dict<list<string>> bzl: ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'], bzr: ['bzr_log.any', 'bzr_log.file'], c: ['enlightenment/file.cfg', 'file.qc', 'file.c', 'some-enlightenment/file.cfg', 'file.mdh', 'file.epro'], + c3: ['file.c3', 'file.c3i', 'file.c3t'], cabal: ['file.cabal'], cabalconfig: ['cabal.config', expand("$HOME/.config/cabal/config")] + WhenConfigHome('$XDG_CONFIG_HOME/cabal/config'), cabalproject: ['cabal.project', 'cabal.project.local'], diff --git a/src/version.c b/src/version.c index 0ffb00120..fe1246adf 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 880, /**/ 879, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1tDWUx-0081G4-Ou%40256bit.org.