Skip to content

Commit 15e9888

Browse files
antzninchrisbra
authored andcommitted
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 <antonin@godard.cc> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent fd836aa commit 15e9888

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

runtime/syntax/bitbake.vim

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
" Copyright (C) 2008 Ricardo Salveti <rsalveti@rsalveti.net>
77
" Last Change: 2022 Jul 25
88
" 2025 Oct 13 by Vim project: update multiline function syntax #18565
9+
" 2026 Apr 07 by Vim project: update syntax script #19931
910
"
1011
" This file is licensed under the MIT license, see COPYING.MIT in
1112
" this source distribution for the terms.
@@ -62,14 +63,14 @@ syn match bbVarFlagDef "^\([a-zA-Z0-9\-_\.]\+\)\(\[[a-zA-Z0-9\-_\.+]\+\
6263
syn region bbVarFlagFlag matchgroup=bbArrayBrackets start="\[" end="\]\s*\(:=\|=\|.=\|=.|+=\|=+\|?=\)\@=" contained contains=bbIdentifier nextgroup=bbVarEq
6364

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

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

7475
" OE Important Functions
7576
syn keyword bbOEFunctions do_fetch do_unpack do_patch do_configure do_compile do_stage do_install do_package contained

0 commit comments

Comments
 (0)