diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-08 06:47:07 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-08 06:47:07 +0000 |
commit | 638ccde60d053fd43ac443b568760e57a75d6c5d (patch) | |
tree | 16996173d5bbd3ffca370adfc923f0adac1f0e38 /contrib | |
parent | 5c7f13d325631467ef9eb63230c507062e92e022 (diff) | |
download | bitbake-638ccde60d053fd43ac443b568760e57a75d6c5d.tar.gz |
Vim syntax update: highlight the 'def' as a Statement, and add highlighting of the bitbake 'addtask', 'addhandler', 'inherit', and 'include' statements.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/vim/syntax/bb.vim | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim index 3f59cbac4..f80eb8b63 100644 --- a/contrib/vim/syntax/bb.vim +++ b/contrib/vim/syntax/bb.vim @@ -78,13 +78,16 @@ syn region bbShellFuncRegion matchgroup=bbDelimiter start="{" end="^}$" keepend " BitBake 'def'd python functions syn keyword bbDef def contained -syn match bbDefCmd "^def" skipwhite nextgroup=bbDefFunc +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 start=":$" end='^$' end='^\(\s\)\@!' contained contains=@python -hi def link bbDefCmd bbStatement +" BitBake statements +syn keyword bbStatement include inherit addtask addhandler + +hi def link bbDef Statement hi def link bbPythonFlag Type hi def link bbStatement Statement hi def link bbString String |