summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-08 21:25:48 +0000
committerChris Larson <clarson@kergoth.com>2004-12-08 21:25:48 +0000
commite0a6ff0140b0fd4a61d3330d3ea77b9db76824e0 (patch)
treedf7dcfd5ccd5073bdfc5be803cc9c76cd5347b9e /contrib
parentb742cd9b24d0171bb39c54fec94bcebd4047358b (diff)
downloadbitbake-contrib-e0a6ff0140b0fd4a61d3330d3ea77b9db76824e0.tar.gz
Adjust whitespace handling in the vim syntax a bit.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vim/syntax/bb.vim6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim
index c8f4bb825..3bb65b2f8 100644
--- a/contrib/vim/syntax/bb.vim
+++ b/contrib/vim/syntax/bb.vim
@@ -81,7 +81,7 @@ endif
syn keyword bbPythonFlag python contained nextgroup=bbFunction
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
+syn region bbPythonFuncRegion matchgroup=bbDelimiter start="{\s*$" end="^}\s*$" keepend contained contains=@python
"hi def link bbPythonFuncRegion Comment
@@ -93,7 +93,7 @@ endif
syn keyword bbFakerootFlag fakeroot contained nextgroup=bbFunction
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
+syn region bbShellFuncRegion matchgroup=bbDelimiter start="{\s*$" end="^}\s*$" keepend contained contains=@shell
"hi def link bbShellFuncRegion Comment
@@ -103,7 +103,7 @@ 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=":$" end='^\(\s\|$\)\@!' contained contains=@python
+syn region bbDefRegion matchgroup=bbDelimiter start=":\s*$" end='^\(\s\|$\)\@!' contained contains=@python
" BitBake statements