From cbcd8e5296d3b74e8eac34ddb12efdfce6ed3cdb Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Mon, 10 Jan 2011 12:00:09 -0700 Subject: vim: handle highlighting exports without assignment (Bitbake rev: f36354a1bfd3f92979c5ad61a1e5d796f8246f60) Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- bitbake/contrib/vim/syntax/bitbake.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake') diff --git a/bitbake/contrib/vim/syntax/bitbake.vim b/bitbake/contrib/vim/syntax/bitbake.vim index b46436a56..bcabf5c44 100644 --- a/bitbake/contrib/vim/syntax/bitbake.vim +++ b/bitbake/contrib/vim/syntax/bitbake.vim @@ -43,6 +43,7 @@ syn region bbString matchgroup=bbQuote start=+"+ skip=+\\$+ excluden syn region bbString matchgroup=bbQuote start=+'+ skip=+\\$+ excludenl end=+'+ contained keepend contains=bbTodo,bbContinue,bbVarDeref,@Spell " Vars definition +syn match bbExport "^export" nextgroup=bbIdentifier skipwhite syn keyword bbExportFlag export contained nextgroup=bbIdentifier skipwhite syn match bbIdentifier "[a-zA-Z0-9\-_\.\/\+]\+" display contained syn match bbVarDeref "${[a-zA-Z0-9\-_\.\/\+]\+}" contained @@ -103,6 +104,7 @@ hi def link bbString String hi def link bbDelimiter Keyword hi def link bbArrayBrackets Statement hi def link bbContinue Special +hi def link bbExport Type hi def link bbExportFlag Type hi def link bbIdentifier Identifier hi def link bbVarDeref PreProc -- cgit v1.2.3