diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-08 11:37:45 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-08 11:37:45 +0000 |
commit | 81fdab93a2a4fbb849c09f4f5e054ffb1ae69b20 (patch) | |
tree | 1398a415c5ab67da1abc78bdd27c6fccb84cf0f7 /contrib | |
parent | 4d1158774e8d312b299aa76fc54e8f3b5a3a4bd3 (diff) | |
download | bitbake-contrib-81fdab93a2a4fbb849c09f4f5e054ffb1ae69b20.tar.gz |
Vim syntax update: match and highlight variable definitions flagged as 'export'.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/vim/syntax/bb.vim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim index 190cf5b3b..db2949fd5 100644 --- a/contrib/vim/syntax/bb.vim +++ b/contrib/vim/syntax/bb.vim @@ -49,9 +49,11 @@ syn region bbString matchgroup=bbQuote start=/'/ skip=/\\$/ excludenl end=/'/ c " hi def link bbPythonFlag Type " BitBake variable metadata + +syn keyword bbExportFlag export contained nextgroup=bbIdentifier skipwhite syn match bbVarOverrideDeref "${[a-zA-Z0-9\-_]\+}" hi def link bbVarOverrideDeref String -syn match bbVarDef "^\([a-zA-Z0-9\-_]\+\(_[${}a-zA-Z0-9\-_]\+\)\?\)\s*\(\(:=\)\|\(+=\)\|\(=+\)\|=\)\@=" contains=bbIdentifier,bbVarOverrideDeref nextgroup=bbVarEq +syn match bbVarDef "^\(export\s*\)\?\([a-zA-Z0-9\-_]\+\(_[${}a-zA-Z0-9\-_]\+\)\?\)\s*\(\(:=\)\|\(+=\)\|\(=+\)\|=\)\@=" contains=bbExportFlag,bbIdentifier,bbVarOverrideDeref nextgroup=bbVarEq syn match bbIdentifier "[a-zA-Z0-9\-_]\+" display contained "syn keyword bbVarEq = display contained nextgroup=bbVarValue @@ -112,6 +114,7 @@ hi def link bbArrayBrackets Statement hi def link bbContinue Special hi def link bbDef Statement hi def link bbPythonFlag Type +hi def link bbExportFlag Type hi def link bbStatement Statement hi def link bbString String hi def link bbTodo Todo |