diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-09 08:19:06 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-09 08:19:06 +0000 |
commit | fb40858a226af5643cca4a3852ee0072bc6ccc05 (patch) | |
tree | 054203d08407c3d318cbf4429c9bb95acededdd7 /contrib/vim/syntax/bb.vim | |
parent | a19eaad79fe677ea72dff32e1f48ddc0c5d9a4c8 (diff) | |
download | bitbake-contrib-fb40858a226af5643cca4a3852ee0072bc6ccc05.tar.gz |
Vim syntax update: let syntax/python.vim do the highlighting for the actual 'def' line, rather than ripping it apart and doing it ourselves.
Diffstat (limited to 'contrib/vim/syntax/bb.vim')
-rw-r--r-- | contrib/vim/syntax/bb.vim | 9 |
1 files changed, 5 insertions, 4 deletions
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 |