[bitbake-devel] [PATCH 0/9] BitBake Vim indentation plugin

Martin Jansa martin.jansa at gmail.com
Fri Oct 11 17:43:51 UTC 2019


On Fri, Oct 11, 2019 at 12:22:58PM -0400, Chris Laplante via bitbake-devel wrote:
> This patchset adds Vim indentation support for the BitBake language.
> 
> It supports indenting variable assignments, Python and shell tasks/functions.
> To accomplish Python indentation, it uses a hacked-up version of the Python indenter
> from Vim upstream. The upstream shell indenter is used directly, without
> modification, however in the future it will be necessary to modify the shell
> indenter to properly support "fakeroot" shell tasks.

Thank you. As vim user I'll test this soon.

Does the above mean that it will use 4 spaces for python and tabs for
shell tasks like oe-core is using?

Would it be possible to simply modify it locally to use 4 spaces for
indentation everywhere like other OE layers are using?

https://www.openembedded.org/wiki/Styleguide#Format_Guidelines

Cheers,

> The following changes since commit 94f6b31befda5c496f65e863a6f8152b42d7ebf0:
> 
>   build-appliance-image: Update to master head revision (2019-10-09 22:28:50 +0100)
> 
> are available in the git repository at:
> 
>   git://git.yoctoproject.org/poky-contrib cpl/bitbake-vim
>   http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=cpl/bitbake-vim
> 
> Chris Laplante (9):
>   bitbake: contrib/vim: initial commit, with unmodified code from
>     indent/python.vim
>   bitbake: contrib/vim: Modify Python indentation to work with 'python
>     do_task {'
>   bitbake: contrib/vim: More Python indenting; move indent file to
>     correct directory
>   bitbake: contrib/vim: Special handling of bb.fatal
>   bitbake: contrib/vim: don't redeclare indenter
>   bitbake: contrib/vim: renaming & comments
>   bitbake: contrib/vim: indenting for assignments; tweak Python
>     indenting
>   bitbake: contrib/vim: handle shell indenting
>   bitbake: contrib/vim: Add copyright and license notice
> 
>  bitbake/contrib/vim/indent/bitbake.vim | 342 +++++++++++++++++++++++++++++++++
>  1 file changed, 342 insertions(+)
>  create mode 100644 bitbake/contrib/vim/indent/bitbake.vim
> 
> --
> 2.7.4
> 
> -- 
> _______________________________________________
> bitbake-devel mailing list
> bitbake-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/bitbake-devel

-- 
Martin 'JaMa' Jansa     jabber: Martin.Jansa at gmail.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: Digital signature
URL: <http://lists.openembedded.org/pipermail/bitbake-devel/attachments/20191011/da0487f8/attachment.sig>


More information about the bitbake-devel mailing list