diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-08 11:15:12 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-08 11:15:12 +0000 |
commit | a36a6361e3f17f7377f9f34734fecbb64d2403dc (patch) | |
tree | 8a12da7a2a9e47ef8385edf876f13208739d8ed3 /contrib/vim | |
parent | 9b67e1bd7adb6427ffe3c655f19a0b39c73af3b3 (diff) | |
download | bitbake-a36a6361e3f17f7377f9f34734fecbb64d2403dc.tar.gz |
Vim syntax update: highlight := variable assignment.
Diffstat (limited to 'contrib/vim')
-rw-r--r-- | contrib/vim/syntax/bb.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/vim/syntax/bb.vim b/contrib/vim/syntax/bb.vim index 9fed57d8f..5de9bb588 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 |