Mercurial > vim
changeset 36378:356ff7eab750 draft v9.1.0809
patch 9.1.0809: filetype: petalinux config files not recognized
Commit: https://github.com/vim/vim/commit/626b6ab48682b211c22ede5a6e63513c85f93e58
Author: Wu, Zhenyu <wuzhenyu@ustc.edu>
Date: Tue Oct 22 23:21:49 2024 +0200
patch 9.1.0809: filetype: petalinux config files not recognized
Problem: filetype: petalinux config files not recognized
Solution: detect 'project-spec/*.conf' files as bitbake filetype
(Wu, Zhenyu)
References:
https://www.amd.com/en/products/software/adaptive-socs-and-fpgas/embedded-software/petalinux-sdk.html
closes: #15926
Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 22 Oct 2024 23:30:04 +0200 |
parents | ed4e3a5df43a |
children | cbc679fe9443 |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -283,7 +283,7 @@ au BufNewFile,BufRead *.blade.php setf au BufNewFile,BufRead *.bl setf blank " Bitbake -au BufNewFile,BufRead *.bb,*.bbappend,*.bbclass,*/build/conf/*.conf,*/meta{-*,}/conf/*.conf setf bitbake +au BufNewFile,BufRead *.bb,*.bbappend,*.bbclass,*/build/conf/*.conf,*/meta{-*,}/conf/*.conf,*/project-spec/configs/*.conf setf bitbake " Blkid cache file au BufNewFile,BufRead */etc/blkid.tab,*/etc/blkid.tab.old setf xml
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -133,7 +133,8 @@ def s:GetFilenameChecks(): dict<list<str bib: ['file.bib'], bicep: ['file.bicep', 'file.bicepparam'], bindzone: ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file', 'foobar.zone'], - bitbake: ['file.bb', 'file.bbappend', 'file.bbclass', 'build/conf/local.conf', 'meta/conf/layer.conf', 'build/conf/bbappend.conf', 'meta-layer/conf/distro/foo.conf'], + bitbake: ['file.bb', 'file.bbappend', 'file.bbclass', 'build/conf/local.conf', 'meta/conf/layer.conf', 'build/conf/bbappend.conf', 'meta-layer/conf/distro/foo.conf', + 'project-spec/configs/zynqmp-generic-xczu7ev.conf'], blade: ['file.blade.php'], blank: ['file.bl'], blueprint: ['file.blp'],