aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-08 21:11:11 +0000
committerChris Larson <clarson@kergoth.com>2004-12-08 21:11:11 +0000
commit4f80be8f2dba4ae89c055ba42f3bf7e2826ee537 (patch)
tree6f7e4361bd5fba9a504821b2afc5d805de0358a2 /contrib
parente234b8ac086a7f5a296ea3168dfb20789147af82 (diff)
downloadbitbake-4f80be8f2dba4ae89c055ba42f3bf7e2826ee537.tar.gz
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).
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vim/syntax/bb.vim8
1 files changed, 4 insertions, 4 deletions
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\)\@<!\(\s*()\s*\)\({\)\@=" contains=bbFakerootFlag,bbFunction,bbDelimiter nextgroup=bbShellFuncRegion
-syn region bbShellFuncRegion matchgroup=bbDelimiter start="{" end="^}$" keepend contained contains=@shell
+syn match bbShellFuncDef "^\(fakeroot\s*\)\?\(\w\+\)\(python\)\@<!\(\s*()\s*\)\({\)\@=" contains=bbFakerootFlag,bbFunction,bbDelimiter nextgroup=bbShellFuncRegion skipwhite
+syn region bbShellFuncRegion matchgroup=bbDelimiter start="{\s*" end="^}\s*$" keepend contained contains=@shell
"hi def link bbShellFuncRegion Comment