aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/vim
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-08 09:04:11 +0000
committerChris Larson <clarson@kergoth.com>2004-12-08 09:04:11 +0000
commit52ec4c06aff0249f464bb82e31f490c15e1c6039 (patch)
treee960ceff9edf6470db29d4057afad08b6f7c635d /contrib/vim
parent3c752fa378be5c713590bd57ad98ff7bc4f8a83a (diff)
downloadbitbake-52ec4c06aff0249f464bb82e31f490c15e1c6039.tar.gz
bitbake-52ec4c06aff0249f464bb82e31f490c15e1c6039.tar.bz2
bitbake-52ec4c06aff0249f464bb82e31f490c15e1c6039.zip
Vim syntax update: Highlight overrides that include variable derefences (i.e. FILES_${PN}).
Diffstat (limited to 'contrib/vim')
-rw-r--r--contrib/vim/syntax/bb.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim
index 81723a89..4eded8bb 100644
--- a/contrib/vim/syntax/bb.vim
+++ b/contrib/vim/syntax/bb.vim
@@ -49,7 +49,9 @@ syn region bbString matchgroup=bbQuote start=/'/ skip=/\\$/ excludenl end=/'/ c
" hi def link bbPythonFlag Type
" BitBake variable metadata
-syn match bbVarDef "^\([a-zA-Z0-9\-_]\+\)\s*\(=\)\@=" contains=bbIdentifier nextgroup=bbVarEq
+syn match bbVarOverrideDeref "[\${}()]"
+hi def link bbVarOverrideDeref Statement
+syn match bbVarDef "^\([a-zA-Z0-9\-_]\+\(_\(\${\)\?[a-zA-Z0-9\-_]\+\(}\)\?\)\?\)\s*\(=\)\@=" contains=bbIdentifier,bbVarOverrideDeref nextgroup=bbVarEq
syn match bbIdentifier "[a-zA-Z0-9\-_]\+" display contained
"syn keyword bbVarEq = display contained nextgroup=bbVarValue
syn match bbVarEq "=" contained contains=bbOperator nextgroup=bbVarValue