aboutsummaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-08 09:46:09 +0000
committerChris Larson <clarson@kergoth.com>2004-12-08 09:46:09 +0000
commit8bee675cbbf298a88d12c4ff3bf5c22ba5f09d9d (patch)
treed0d3f11a6b9a839f0a7847abf859cfd20a287f9a /contrib
parentf0d85aef1e1068e9a48ebfe48a859dc62ec86187 (diff)
downloadbitbake-8bee675cbbf298a88d12c4ff3bf5c22ba5f09d9d.tar.gz
Vim syntax update: Fix the var deref in var overrides to be more versatile and highlight them as string rather than statement+identifier.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/vim/syntax/bb.vim9
1 files changed, 5 insertions, 4 deletions
diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim
index 54b4b5d53..9fed57d8f 100644
--- a/contrib/vim/syntax/bb.vim
+++ b/contrib/vim/syntax/bb.vim
@@ -49,12 +49,13 @@ syn region bbString matchgroup=bbQuote start=/'/ skip=/\\$/ excludenl end=/'/ c
" hi def link bbPythonFlag Type
" BitBake variable metadata
-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 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 bbIdentifier "[a-zA-Z0-9\-_]\+" display contained
"syn keyword bbVarEq = display contained nextgroup=bbVarValue
-syn match bbVarEq "=" contained contains=bbOperator nextgroup=bbVarValue
+syn match bbVarEq "\(+=\)\|\(=+\)\|=" contained nextgroup=bbVarValue
syn match bbVarValue ".*$" contained contains=bbString