Commit: patch 9.2.1035: filetype: Github citation files are not recognized

4 views
Skip to first unread message

Christian Brabandt

unread,
Sep 3, 2026, 2:30:38 AM (4 days ago) Sep 3
to vim...@googlegroups.com
patch 9.2.1035: filetype: Github citation files are not recognized

Commit: https://github.com/vim/vim/commit/05de89440166f045535ebf06fb7aeec962f3fbd2
Author: Wu, Zhenyu <wuzh...@ustc.edu>
Date: Wed Sep 2 21:19:04 2026 +0000

patch 9.2.1035: filetype: Github citation files are not recognized

Problem: filetype: Github citation files are not recognized
Solution: Detect *.cff files as yaml filetype (Wu Zhenyu).

Reference:
https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-citation-files

closes: #21163

Signed-off-by: Wu, Zhenyu <wuzh...@ustc.edu>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 93a80f4a7..dbde4d40f 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -3,7 +3,7 @@ vim9script
# Vim functions for file type detection
#
# Maintainer: The Vim Project <https://github.com/vim/vim>
-# Last Change: 2026 Aug 26
+# Last Change: 2026 Sep 02
# Former Maintainer: Bram Moolenaar <Br...@vim.org>

# These functions are moved here from runtime/filetype.vim to make startup
@@ -1979,6 +1979,8 @@ const ft_from_ext = {
"cob": "cobol",
# Coco/R
"atg": "coco",
+ # Citation files
+ "cff": "yaml",
# Cold Fusion
"cfm": "cf",
"cfi": "cf",
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index d33dbdc25..c97f0a285 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -1009,7 +1009,7 @@ def s:GetFilenameChecks(): dict<list<string>>
xslt: ['file.xsl', 'file.xslt'],
yacc: ['file.yy', 'file.yxx', 'file.y++'],
yaml: ['file.yaml', 'file.yml', 'file.eyaml', 'file.kyaml', 'file.kyml', 'any/.bundle/config', '.clangd', '.clang-format', '.clang-tidy', 'file.mplstyle', 'matplotlibrc', 'yarn.lock',
- '/home/user/.kube/config', '/home/user/.kube/kuberc', '.condarc', 'condarc', '.mambarc', 'mambarc', 'pixi.lock', 'buf.lock', 'file.ksy', 'any/argocd/config'],
+ '/home/user/.kube/config', '/home/user/.kube/kuberc', '.condarc', 'condarc', '.mambarc', 'mambarc', 'pixi.lock', 'buf.lock', 'file.ksy', 'any/argocd/config', 'file.cff'],
yang: ['file.yang'],
yara: ['file.yara', 'file.yar'],
yuck: ['file.yuck'],
diff --git a/src/version.c b/src/version.c
index a8e412993..936ebc58a 100644
--- a/src/version.c
+++ b/src/version.c
@@ -763,6 +763,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1035,
/**/
1034,
/**/
Reply all
Reply to author
Forward
0 new messages