All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] bitbake.vim: detect *.bbappend files in ftdetect automatically
@ 2012-12-12 20:35 Eren Türkay
  2012-12-12 20:47 ` Martin Jansa
  0 siblings, 1 reply; 3+ messages in thread
From: Eren Türkay @ 2012-12-12 20:35 UTC (permalink / raw)
  To: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 846 bytes --]

Currently, *.bb and *.bbclass files are automatically highlighted and
detected as a bitbake file. Since *.bbappend files are also bitbake
files, vim plugin should automatically detect and highlight it as well.
---
 contrib/vim/ftdetect/bitbake.vim |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/vim/ftdetect/bitbake.vim b/contrib/vim/ftdetect/bitbake.vim
index 179e4d9..b9529e6 100644
--- a/contrib/vim/ftdetect/bitbake.vim
+++ b/contrib/vim/ftdetect/bitbake.vim
@@ -10,8 +10,8 @@ if &compatible || version < 600
     finish
 endif
 
-" .bb and .bbclass
-au BufNewFile,BufRead *.b{b,bclass}	set filetype=bitbake
+" .bb, .bbappend and .bbclass
+au BufNewFile,BufRead *.{bb,bbappend,bbclass}	set filetype=bitbake
 
 " .inc
 au BufNewFile,BufRead *.inc 		set filetype=bitbake
-- 
1.7.7.5

[-- Attachment #2: Type: application/pgp-signature, Size: 850 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] bitbake.vim: detect *.bbappend files in ftdetect automatically
  2012-12-12 20:35 [PATCH v2] bitbake.vim: detect *.bbappend files in ftdetect automatically Eren Türkay
@ 2012-12-12 20:47 ` Martin Jansa
  2012-12-12 20:58   ` Eren Türkay
  0 siblings, 1 reply; 3+ messages in thread
From: Martin Jansa @ 2012-12-12 20:47 UTC (permalink / raw)
  To: Eren Türkay; +Cc: bitbake-devel

On Wed, Dec 12, 2012 at 9:35 PM, Eren Türkay <eren@hambedded.org> wrote:
> Currently, *.bb and *.bbclass files are automatically highlighted and
> detected as a bitbake file. Since *.bbappend files are also bitbake
> files, vim plugin should automatically detect and highlight it as well.
> ---
>  contrib/vim/ftdetect/bitbake.vim |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/contrib/vim/ftdetect/bitbake.vim b/contrib/vim/ftdetect/bitbake.vim
> index 179e4d9..b9529e6 100644
> --- a/contrib/vim/ftdetect/bitbake.vim
> +++ b/contrib/vim/ftdetect/bitbake.vim
> @@ -10,8 +10,8 @@ if &compatible || version < 600
>      finish
>  endif
>
> -" .bb and .bbclass
> -au BufNewFile,BufRead *.b{b,bclass}    set filetype=bitbake
> +" .bb, .bbappend and .bbclass
> +au BufNewFile,BufRead *.{bb,bbappend,bbclass}  set filetype=bitbake

fwiw: you can probably add .inc too, but some people will probably
find it conflicting with some other ftdetect.. :/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v2] bitbake.vim: detect *.bbappend files in ftdetect automatically
  2012-12-12 20:47 ` Martin Jansa
@ 2012-12-12 20:58   ` Eren Türkay
  0 siblings, 0 replies; 3+ messages in thread
From: Eren Türkay @ 2012-12-12 20:58 UTC (permalink / raw)
  To: Martin Jansa; +Cc: bitbake-devel

[-- Attachment #1: Type: text/plain, Size: 728 bytes --]

On Wed, Dec 12, 2012 at 09:47:26PM +0100, Martin Jansa wrote:
> fwiw: you can probably add .inc too, but some people will probably
> find it conflicting with some other ftdetect.. :/

*.inc and *.conf are already defined in the lines 16 and 19. I haven't
had any problems with them as I don't have conflicting files.

I wonder why *.bbinc isn't used instead of such a generic name *.inc :)
With a lot of recipes referencing *.inc, changing the suffix just for
vim plugin wouldn't be suitable. However, for the sake of consistency
with bb{class,append}, changing the practice of using *.inc to *.bbinc
could be good in some time.

Regards,
Eren

-- 
    . 73! DE TA1AET
      http://linkedin.com/in/erenturkay

[-- Attachment #2: Type: application/pgp-signature, Size: 850 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-12-12 21:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-12 20:35 [PATCH v2] bitbake.vim: detect *.bbappend files in ftdetect automatically Eren Türkay
2012-12-12 20:47 ` Martin Jansa
2012-12-12 20:58   ` Eren Türkay

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.