From 7d63e5d1cd326c40df4254d3533217f2f39b87bd Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Wed, 8 Dec 2004 06:27:44 +0000 Subject: Vim syntax update: highlight the shell functions as shell. --- contrib/vim/syntax/bb.vim | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'contrib/vim') diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim index 850ab8d17..041561cca 100644 --- a/contrib/vim/syntax/bb.vim +++ b/contrib/vim/syntax/bb.vim @@ -54,13 +54,27 @@ syn match bbVarValue ".*$" contained contains=bbString " BitBake python metadata syn include @python syntax/python.vim +if exists("b:current_syntax") + unlet 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 "hi def link bbPythonFuncRegion Comment -hi def link bbPythonFlag Type +" BitBake shell metadata +syn include @shell syntax/sh.vim +if exists("b:current_syntax") + unlet b:current_syntax +endif + +syn match bbShellFuncDef "^\(\w\+\)\(python\)\@