vim-patch:9.2.1035: filetype: Github citation files are not recognized (#41643)

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: vim/vim#21163

05de894401

Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
zeertzjq
2026-09-03 11:07:12 +08:00
committed by GitHub
parent aff123a5d4
commit 7645d7e232
2 changed files with 2 additions and 1 deletions

View File

@@ -1492,6 +1492,7 @@ local extension = {
yy = 'yacc',
['y++'] = 'yacc',
yxx = 'yacc',
cff = 'yaml',
yml = 'yaml',
yaml = 'yaml',
eyaml = 'yaml',

View File

@@ -1007,7 +1007,7 @@ func s:GetFilenameChecks() abort
\ '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'],