2024-09-09 08:52:07 +00:00
|
|
|
" Vim filetype detection file
|
|
|
|
" Language: BitBake
|
|
|
|
" Author: Ricardo Salveti <rsalveti@rsalveti.net>
|
|
|
|
" Copyright: Copyright (C) 2008 Ricardo Salveti <rsalveti@rsalveti.net>
|
|
|
|
" Licence: You may redistribute this under the same terms as Vim itself
|
|
|
|
"
|
|
|
|
" This sets up the syntax highlighting for BitBake files, like .bb, .bbclass and .inc
|
|
|
|
|
|
|
|
if &compatible || version < 600
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2024-09-09 08:57:42 +00:00
|
|
|
" .bb, .bbappend and .bbclass
|
|
|
|
au BufNewFile,BufRead *.{bb,bbappend,bbclass} set filetype=bitbake
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
" .inc
|
2024-09-09 08:57:42 +00:00
|
|
|
au BufNewFile,BufRead *.inc set filetype=bitbake
|
2024-09-09 08:52:07 +00:00
|
|
|
|
|
|
|
" .conf
|
|
|
|
au BufNewFile,BufRead *.conf
|
|
|
|
\ if (match(expand("%:p:h"), "conf") > 0) |
|
|
|
|
\ set filetype=bitbake |
|
|
|
|
\ endif
|
|
|
|
|