From 4f80be8f2dba4ae89c055ba42f3bf7e2826ee537 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 8 Dec 2004 21:11:11 +0000 Subject: Vim syntax bugfix: make it a bit more tolerant about locating the end of bitbake shell & python functions (noticed zap_root_password's ending } was followed by whitespace). --- contrib/vim/syntax/bb.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'contrib') diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim index 0f9e19f6a..863687625 100644 --- a/contrib/vim/syntax/bb.vim +++ b/contrib/vim/syntax/bb.vim @@ -77,8 +77,8 @@ if exists("b:current_syntax") endif syn keyword bbPythonFlag python contained nextgroup=bbFunction -syn match bbPythonFuncDef "^\(python\s\+\)\(\w\+\)\?\(\s*()\s*\)\({\)\@=" contains=bbPythonFlag,bbFunction,bbDelimiter nextgroup=bbPythonFuncRegion -syn region bbPythonFuncRegion matchgroup=bbDelimiter start="{" end="^}$" keepend contained contains=@python +syn match bbPythonFuncDef "^\(python\s\+\)\(\w\+\)\?\(\s*()\s*\)\({\)\@=" contains=bbPythonFlag,bbFunction,bbDelimiter nextgroup=bbPythonFuncRegion skipwhite +syn region bbPythonFuncRegion matchgroup=bbDelimiter start="{\s*" end="^}\s*$" keepend contained contains=@python "hi def link bbPythonFuncRegion Comment @@ -89,8 +89,8 @@ if exists("b:current_syntax") endif syn keyword bbFakerootFlag fakeroot contained nextgroup=bbFunction -syn match bbShellFuncDef "^\(fakeroot\s*\)\?\(\w\+\)\(python\)\@