From 638ccde60d053fd43ac443b568760e57a75d6c5d Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 8 Dec 2004 06:47:07 +0000 Subject: Vim syntax update: highlight the 'def' as a Statement, and add highlighting of the bitbake 'addtask', 'addhandler', 'inherit', and 'include' statements. --- contrib/vim/syntax/bb.vim | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'contrib') 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 -- cgit 1.2.3-korg