Commit: runtime(bitbake): Update syntax script

0 views
Skip to first unread message

Christian Brabandt

unread,
3:32 PM (6 hours ago) 3:32 PM
to vim...@googlegroups.com
runtime(bitbake): Update syntax script

Commit: https://github.com/vim/vim/commit/15e988810e7fcf56f757793f750ade47816d76b7
Author: Antonin Godard <ant...@godard.cc>
Date: Tue Apr 7 19:28:27 2026 +0000

runtime(bitbake): Update syntax script

1) add syntax for include_all

The include_all directive was introduced in [1]. It uses the same syntax
as include or require, taking one or more paths as argument.

2) add syntax for inherit_defer

The inherit_defer directive was introduced in [2]. It uses the same syntax
as inherit, taking one or more class name as argument.

3) add syntax for addpylib

The addpylib directive was introduced in [3]. It uses a syntax similar
to addtask or addhandler, taking a directory and python namespace as
argument.

[1]: https://git.openembedded.org/bitbake/commit/?id=d01d5593e7829ac60f37bc23cb87dc6917026471
[2]: https://git.openembedded.org/bitbake/commit/?id=5c2e840eafeba1f0f754c226b87bfb674f7bea29
[3]: https://git.openembedded.org/bitbake/commit/?id=afb8478d3853f6edf3669b93588314627d617d6b

Signed-off-by: Antonin Godard <ant...@godard.cc>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/bitbake.vim b/runtime/syntax/bitbake.vim
index 5e9bc5829..9fea3e291 100644
--- a/runtime/syntax/bitbake.vim
+++ b/runtime/syntax/bitbake.vim
@@ -6,6 +6,7 @@
" Copyright (C) 2008 Ricardo Salveti <rsal...@rsalveti.net>
" Last Change: 2022 Jul 25
" 2025 Oct 13 by Vim project: update multiline function syntax #18565
+" 2026 Apr 07 by Vim project: update syntax script #19931
"
" This file is licensed under the MIT license, see COPYING.MIT in
" this source distribution for the terms.
@@ -62,14 +63,14 @@ syn match bbVarFlagDef "^\([a-zA-Z0-9\-_\.]\+\)\(\[[a-zA-Z0-9\-_\.+]\+\
syn region bbVarFlagFlag matchgroup=bbArrayBrackets start="\[" end="\]\s*\(:=\|=\|.=\|=.|+=\|=+\|?=\)\@=" contained contains=bbIdentifier nextgroup=bbVarEq

" Includes and requires
-syn keyword bbInclude inherit include require contained
+syn keyword bbInclude inherit inherit_defer include include_all require contained
syn match bbIncludeRest ".*$" contained contains=bbString,bbVarDeref
-syn match bbIncludeLine "^\(inherit\|include\|require\)\s\+" contains=bbInclude nextgroup=bbIncludeRest
+syn match bbIncludeLine "^\(inherit\|inherit_defer\|include\|include_all\|require\)\s\+" contains=bbInclude nextgroup=bbIncludeRest

" Add taks and similar
-syn keyword bbStatement addtask deltask addhandler after before EXPORT_FUNCTIONS contained
+syn keyword bbStatement addtask deltask addhandler after before EXPORT_FUNCTIONS addpylib contained
syn match bbStatementRest ".*$" skipwhite contained contains=bbStatement
-syn match bbStatementLine "^\(addtask\|deltask\|addhandler\|after\|before\|EXPORT_FUNCTIONS\)\s\+" contains=bbStatement nextgroup=bbStatementRest
+syn match bbStatementLine "^\(addtask\|deltask\|addhandler\|after\|before\|EXPORT_FUNCTIONS\|addpylib\)\s\+" contains=bbStatement nextgroup=bbStatementRest

" OE Important Functions
syn keyword bbOEFunctions do_fetch do_unpack do_patch do_configure do_compile do_stage do_install do_package contained
Reply all
Reply to author
Forward
0 new messages