aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/vim
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-08 11:15:12 +0000
committerChris Larson <clarson@kergoth.com>2004-12-08 11:15:12 +0000
commita36a6361e3f17f7377f9f34734fecbb64d2403dc (patch)
tree8a12da7a2a9e47ef8385edf876f13208739d8ed3 /contrib/vim
parent9b67e1bd7adb6427ffe3c655f19a0b39c73af3b3 (diff)
downloadbitbake-a36a6361e3f17f7377f9f34734fecbb64d2403dc.tar.gz
bitbake-a36a6361e3f17f7377f9f34734fecbb64d2403dc.tar.bz2
bitbake-a36a6361e3f17f7377f9f34734fecbb64d2403dc.zip
Vim syntax update: highlight := variable assignment.
Diffstat (limited to 'contrib/vim')
-rw-r--r--contrib/vim/syntax/bb.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim
index 9fed57d8..5de9bb58 100644
--- a/contrib/vim/syntax/bb.vim
+++ b/contrib/vim/syntax/bb.vim
@@ -51,11 +51,11 @@ syn region bbString matchgroup=bbQuote start=/'/ skip=/\\$/ excludenl end=/'/ c
" BitBake variable metadata
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 "^\([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 nextgroup=bbVarValue
+syn match bbVarEq "\(:=\)\|\(+=\)\|\(=+\)\|=" contained nextgroup=bbVarValue
syn match bbVarValue ".*$" contained contains=bbString