From 0ca976e7654b1acf4b6fff3787a90d23ed6ae198 Mon Sep 17 00:00:00 2001 From: Wes Malone Date: Thu, 24 Aug 2023 10:17:21 -0500 Subject: [PATCH] Match python task append/prepend syntax Fix the error label on python functions with :append/prepend. --- syntax/bitbake.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/bitbake.vim b/syntax/bitbake.vim index fad099e..b052ea2 100644 --- a/syntax/bitbake.vim +++ b/syntax/bitbake.vim @@ -91,7 +91,7 @@ syn region shDeref start=+${@+ skip=+\\$+ excludenl end=+}+ contained co " BitBake python metadata syn keyword bbPyFlag python contained -syn match bbPyFuncDef "^\(fakeroot\s*\)\?\(python\)\(\s\+[0-9A-Za-z_${}\-\.]\+\)\?\(\s*()\s*\)\({\)\@=" contains=bbShFakeRootFlag,bbPyFlag,bbFunction,bbVarDeref,bbDelimiter nextgroup=bbPyFuncRegion skipwhite +syn match bbPyFuncDef "^\(fakeroot\s*\)\?\(python\)\(\s\+[0-9A-Za-z_${}\-\.]\+\(:\(pre\|ap\)pend\)\?\)\?\(\s*()\s*\)\({\)\@=" contains=bbShFakeRootFlag,bbPyFlag,bbFunction,bbVarDeref,bbDelimiter nextgroup=bbPyFuncRegion skipwhite syn region bbPyFuncRegion matchgroup=bbDelimiter start="{\s*$" end="^}\s*$" contained contains=@python " BitBake 'def'd python functions