From fb40858a226af5643cca4a3852ee0072bc6ccc05 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Thu, 9 Dec 2004 08:19:06 +0000 Subject: Vim syntax update: let syntax/python.vim do the highlighting for the actual 'def' line, rather than ripping it apart and doing it ourselves. --- contrib/vim/syntax/bb.vim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'contrib/vim') diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim index 3bb65b2f8..48f943a5b 100644 --- a/contrib/vim/syntax/bb.vim +++ b/contrib/vim/syntax/bb.vim @@ -100,11 +100,12 @@ syn region bbShellFuncRegion matchgroup=bbDelimiter start="{\s*$" end="^}\s*$" k " BitBake 'def'd python functions syn keyword bbDef def contained -syn match bbDefCmd "^def" contains=bbDef skipwhite nextgroup=bbDefFunc -syn match bbDefFunc "\w\+" contains=bbFunction contained skipwhite nextgroup=bbDefArgs -syn region bbDefArgs matchgroup=bbDelimiter start="(" end=")" excludenl contained skipwhite keepend contains=bbIdentifier nextgroup=bbDefRegion -syn region bbDefRegion matchgroup=bbDelimiter start=":\s*$" end='^\(\s\|$\)\@!' contained contains=@python +" syn match bbDefCmd "^def" contains=bbDef skipwhite nextgroup=bbDefFunc +" syn match bbDefFunc "\w\+" contains=bbFunction contained skipwhite nextgroup=bbDefArgs +" syn region bbDefArgs matchgroup=bbDelimiter start="(" end=")" excludenl contained skipwhite keepend contains=bbIdentifier nextgroup=bbDefRegion +" syn region bbDefRegion matchgroup=bbDelimiter start=":\s*$" end='^\(\s\|$\)\@!' contained contains=@python +syn region bbDefRegion start='^def\s\+\w\+([^)]*)\s*:\s*$' end='^\(\s\|$\)\@!' contains=@python " BitBake statements syn keyword bbStatement include inherit addtask addhandler EXPORT_FUNCTIONS display contained -- cgit 1.2.3-korg