diff options
author | Chris Larson <chris_larson@mentor.com> | 2011-01-10 12:00:09 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-10 22:10:30 +0000 |
commit | cbcd8e5296d3b74e8eac34ddb12efdfce6ed3cdb (patch) | |
tree | bf7b33db079a5f1f1d87f9c0d5c4145e0610c0be /bitbake/contrib | |
parent | 55606ce78de48935da438878684281ec789c0a68 (diff) | |
download | poky-cbcd8e5296d3b74e8eac34ddb12efdfce6ed3cdb.tar.gz |
vim: handle highlighting exports without assignment
(Bitbake rev: f36354a1bfd3f92979c5ad61a1e5d796f8246f60)
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/contrib')
-rw-r--r-- | bitbake/contrib/vim/syntax/bitbake.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/contrib/vim/syntax/bitbake.vim b/bitbake/contrib/vim/syntax/bitbake.vim index b46436a567..bcabf5c448 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 | |||
43 | syn region bbString matchgroup=bbQuote start=+'+ skip=+\\$+ excludenl end=+'+ contained keepend contains=bbTodo,bbContinue,bbVarDeref,@Spell | 43 | syn region bbString matchgroup=bbQuote start=+'+ skip=+\\$+ excludenl end=+'+ contained keepend contains=bbTodo,bbContinue,bbVarDeref,@Spell |
44 | 44 | ||
45 | " Vars definition | 45 | " Vars definition |
46 | syn match bbExport "^export" nextgroup=bbIdentifier skipwhite | ||
46 | syn keyword bbExportFlag export contained nextgroup=bbIdentifier skipwhite | 47 | syn keyword bbExportFlag export contained nextgroup=bbIdentifier skipwhite |
47 | syn match bbIdentifier "[a-zA-Z0-9\-_\.\/\+]\+" display contained | 48 | syn match bbIdentifier "[a-zA-Z0-9\-_\.\/\+]\+" display contained |
48 | syn match bbVarDeref "${[a-zA-Z0-9\-_\.\/\+]\+}" contained | 49 | syn match bbVarDeref "${[a-zA-Z0-9\-_\.\/\+]\+}" contained |
@@ -103,6 +104,7 @@ hi def link bbString String | |||
103 | hi def link bbDelimiter Keyword | 104 | hi def link bbDelimiter Keyword |
104 | hi def link bbArrayBrackets Statement | 105 | hi def link bbArrayBrackets Statement |
105 | hi def link bbContinue Special | 106 | hi def link bbContinue Special |
107 | hi def link bbExport Type | ||
106 | hi def link bbExportFlag Type | 108 | hi def link bbExportFlag Type |
107 | hi def link bbIdentifier Identifier | 109 | hi def link bbIdentifier Identifier |
108 | hi def link bbVarDeref PreProc | 110 | hi def link bbVarDeref PreProc |