poky/bitbake/contrib
Roland Hieber fec201518b bitbake: contrib: vim: ftdetect: don't conflict with other filetypes
Use :setfiletype instead of :set filetype. The former only sets the
'filetype' option if it has not been set before, which makes it possible
to override the syntax of certain *.inc files in autocommands from e.g.
.vimrc or modelines. All other ftdetect plugins in upstream vim also use
:setfiletype for this reason.

The detection for bitbake *.inc files is now upstream since Vim 9.0
patch 0055 [1]. If we're running an earlier Vim, use the detection
heuristic from upstream [2] to overwrite the filetype explicitely if we
find bitbake code. But don't always assuming that *.inc files are
bitbake files so as not to break Perl, PHP, Assembly, Povray, etc.

[1]: https://github.com/vim/vim/commit/fa49eb482729
[2]: https://github.com/vim/vim/blob/fb49e3cde79d/runtime/autoload/dist/ft.vim#L715

(Bitbake rev: e8efbba5d7bb4b685ed0a9b970e042ad99be8afb)

Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-03-03 21:38:57 +00:00
..
hashserv bitbake: contrib/hashserv/Dockerfile: Add libgcc to image for runtime dependency 2024-10-25 15:40:54 +01:00
prserv bitbake: contrib: Add Dockerfile for building PR service 2022-03-23 12:08:56 +00:00
vim bitbake: contrib: vim: ftdetect: don't conflict with other filetypes 2025-03-03 21:38:57 +00:00
autobuilderlog.json bitbake: knotty: Update hash equivalence logging 2020-03-13 11:29:23 +00:00
b4-wrapper-bitbake.py bitbake: b4-config: Add basic support for b4 contribution workflow 2025-02-06 10:40:10 +00:00
bbdev.sh Initial population 2005-08-31 10:47:56 +00:00
bbparse-torture.py bitbake: bitbake: Add parsing torture test 2020-09-10 13:49:21 +01:00
dump_cache.py bitbake: bitbake: Strip old editor directives from file headers 2019-05-04 10:44:10 +01:00
README Initial population 2005-08-31 10:47:56 +00:00

This directory is for additional contributed files which may be useful.