diff --git a/runtime/syntax/bitbake.vim b/runtime/syntax/bitbake.vim index 30f34474ad..5e9bc58290 100644 --- a/runtime/syntax/bitbake.vim +++ b/runtime/syntax/bitbake.vim @@ -4,6 +4,8 @@ " Ricardo Salveti " Copyright: Copyright (C) 2004 Chris Larson " Copyright (C) 2008 Ricardo Salveti +" Last Change: 2022 Jul 25 +" 2025 Oct 13 by Vim project: update multiline function syntax #18565 " " This file is licensed under the MIT license, see COPYING.MIT in " this source distribution for the terms. @@ -95,7 +97,7 @@ syn region bbPyFuncRegion matchgroup=bbDelimiter start="{\s*$" end="^}\s*$ " BitBake 'def'd python functions syn keyword bbPyDef def contained -syn region bbPyDefRegion start='^\(def\s\+\)\([0-9A-Za-z_-]\+\)\(\s*(.*)\s*\):\s*$' end='^\(\s\|$\)\@!' contains=@python +syn region bbPyDefRegion start='^\(def\s\+\)\([0-9A-Za-z_-]\+\)\(\s*(\_.*)\s*\):\s*$' end='^\(\s\|$\)\@!' contains=@python " Highlighting Definitions hi def link bbUnmatched Error