diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-01 23:52:50 +0000 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2011-01-04 14:46:54 +0000 |
| commit | e8c48e668c7525257926ab7db9b6e44aa2705483 (patch) | |
| tree | 488cff5fe50da4a077f959959bd0f64b855744f9 /bitbake/contrib/vim/ftdetect | |
| parent | 043adbfa0902dd06ed44a610a48ae3712e3ac1d3 (diff) | |
| download | poky-e8c48e668c7525257926ab7db9b6e44aa2705483.tar.gz | |
bitbake/contrib: Sync with bitbake upstream
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/contrib/vim/ftdetect')
| -rw-r--r-- | bitbake/contrib/vim/ftdetect/bitbake.vim | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/bitbake/contrib/vim/ftdetect/bitbake.vim b/bitbake/contrib/vim/ftdetect/bitbake.vim index 3882a9a08d..179e4d9888 100644 --- a/bitbake/contrib/vim/ftdetect/bitbake.vim +++ b/bitbake/contrib/vim/ftdetect/bitbake.vim | |||
| @@ -1,4 +1,24 @@ | |||
| 1 | au BufNewFile,BufRead *.bb setfiletype bitbake | 1 | " Vim filetype detection file |
| 2 | au BufNewFile,BufRead *.bbclass setfiletype bitbake | 2 | " Language: BitBake |
| 3 | au BufNewFile,BufRead *.inc setfiletype bitbake | 3 | " Author: Ricardo Salveti <rsalveti@rsalveti.net> |
| 4 | " au BufNewFile,BufRead *.conf setfiletype bitbake | 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 | |||
| 9 | if &compatible || version < 600 | ||
| 10 | finish | ||
| 11 | endif | ||
| 12 | |||
| 13 | " .bb and .bbclass | ||
| 14 | au BufNewFile,BufRead *.b{b,bclass} set filetype=bitbake | ||
| 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 | |||
