summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2011-01-10 12:00:09 -0700
committerChris Larson <chris_larson@mentor.com>2011-01-10 12:00:09 -0700
commitf36354a1bfd3f92979c5ad61a1e5d796f8246f60 (patch)
tree37f6b267c7ce7f51c07a32231bf992424388b551 /contrib
parent29ce70ac857a155b27f1909286bc3a0f7429bea0 (diff)
downloadbitbake-f36354a1bfd3f92979c5ad61a1e5d796f8246f60.tar.gz
vim: handle highlighting exports without assignment
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vim/syntax/bitbake.vim2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/vim/syntax/bitbake.vim b/contrib/vim/syntax/bitbake.vim
index b46436a56..bcabf5c44 100644
--- a/contrib/vim/syntax/bitbake.vim
+++ b/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