Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | " Vim filetype detection file |
| 2 | " Language: BitBake |
| 3 | " Author: Ricardo Salveti <rsalveti@rsalveti.net> |
| 4 | " Copyright: Copyright (C) 2008 Ricardo Salveti <rsalveti@rsalveti.net> |
| 5 | " Licence: You may redistribute this under the same terms as Vim itself |
| 6 | " |
| 7 | " This sets up the syntax highlighting for BitBake files, like .bb, .bbclass and .inc |
| 8 | |
Andrew Geissler | 475cb72 | 2020-07-10 16:00:51 -0500 | [diff] [blame] | 9 | if &compatible || version < 600 || exists("b:loaded_bitbake_plugin") |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 10 | finish |
| 11 | endif |
| 12 | |
| 13 | " .bb, .bbappend and .bbclass |
Andrew Geissler | 475cb72 | 2020-07-10 16:00:51 -0500 | [diff] [blame] | 14 | au BufNewFile,BufRead *.{bb,bbappend,bbclass} set filetype=bitbake |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | |
| 16 | " .inc |
| 17 | au BufNewFile,BufRead *.inc set filetype=bitbake |
| 18 | |
| 19 | " .conf |
| 20 | au BufNewFile,BufRead *.conf |
| 21 | \ if (match(expand("%:p:h"), "conf") > 0) | |
| 22 | \ set filetype=bitbake | |
| 23 | \ endif |
| 24 | |