]> code.ossystems Code Review - openembedded-core.git/commitdiff
vim: handle highlighting exports without assignment
authorChris Larson <chris_larson@mentor.com>
Mon, 10 Jan 2011 19:00:09 +0000 (12:00 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 10 Jan 2011 22:10:30 +0000 (22:10 +0000)
(Bitbake rev: f36354a1bfd3f92979c5ad61a1e5d796f8246f60)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/contrib/vim/syntax/bitbake.vim

index b46436a5678d16ae6efe9907e93e80aec71e7941..bcabf5c448cef0935e4f249045ffafbcf5030967 100644 (file)
@@ -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