vim-patch:9.0.0088: pattern for detecting bitbake files is not sufficient (#19547)

Problem:    Pattern for detecting bitbake files is not sufficient.
Solution:   Adjust the pattern. (Gregory Anders, closes vim/vim#10743)
30e212dac1
This commit is contained in:
Gregory Anders
2022-07-27 10:06:09 -06:00
committed by GitHub
parent f57432af4d
commit 9b447c7ce5
3 changed files with 27 additions and 2 deletions

View File

@@ -1861,6 +1861,31 @@ func Test_inc_file()
call assert_equal('bitbake', &filetype)
bwipe!
call writefile(['S = "${WORKDIR}"'], 'Xfile.inc')
split Xfile.inc
call assert_equal('bitbake', &filetype)
bwipe!
call writefile(['DEPENDS:append = " somedep"'], 'Xfile.inc')
split Xfile.inc
call assert_equal('bitbake', &filetype)
bwipe!
call writefile(['MACHINE ??= "qemu"'], 'Xfile.inc')
split Xfile.inc
call assert_equal('bitbake', &filetype)
bwipe!
call writefile(['PROVIDES := "test"'], 'Xfile.inc')
split Xfile.inc
call assert_equal('bitbake', &filetype)
bwipe!
call writefile(['RDEPENDS_${PN} += "bar"'], 'Xfile.inc')
split Xfile.inc
call assert_equal('bitbake', &filetype)
bwipe!
" asm
call writefile(['asmsyntax=bar'], 'Xfile.inc')
split Xfile.inc