mirror of
https://github.com/neovim/neovim.git
synced 2026-09-03 04:43:48 +00:00
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:
@@ -1492,6 +1492,7 @@ local extension = {
|
||||
yy = 'yacc',
|
||||
['y++'] = 'yacc',
|
||||
yxx = 'yacc',
|
||||
cff = 'yaml',
|
||||
yml = 'yaml',
|
||||
yaml = 'yaml',
|
||||
eyaml = 'yaml',
|
||||
|
||||
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user