diff options
author | Chris Larson <clarson@kergoth.com> | 2004-12-08 21:05:42 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2004-12-08 21:05:42 +0000 |
commit | e234b8ac086a7f5a296ea3168dfb20789147af82 (patch) | |
tree | 8dce958da7123843c2e8352583b7edc4964eecb1 /contrib | |
parent | 24fb9f524f1d40846983e8ede5f78573a11542fc (diff) | |
download | bitbake-contrib-e234b8ac086a7f5a296ea3168dfb20789147af82.tar.gz |
Vim syntax: match variables defined using ?=.
Diffstat (limited to 'contrib')
-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 f32396bda..0f9e19f6a 100644 --- a/contrib/vim/syntax/bb.vim +++ b/contrib/vim/syntax/bb.vim @@ -52,11 +52,11 @@ syn region bbString matchgroup=bbQuote start=/'/ skip=/\\$/ excludenl end=/'/ c syn keyword bbExportFlag export contained nextgroup=bbIdentifier skipwhite syn match bbVarDeref "${[a-zA-Z0-9\-_\.]\+}" contained -syn match bbVarDef "^\(export\s*\)\?\([a-zA-Z0-9\-_\.]\+\(_[${}a-zA-Z0-9\-_\.]\+\)\?\)\s*\(\(:=\)\|\(+=\)\|\(=+\)\|=\)\@=" contains=bbExportFlag,bbIdentifier,bbVarDeref nextgroup=bbVarEq +syn match bbVarDef "^\(export\s*\)\?\([a-zA-Z0-9\-_\.]\+\(_[${}a-zA-Z0-9\-_\.]\+\)\?\)\s*\(\(:=\)\|\(+=\)\|\(=+\)\|\(?=\)\|=\)\@=" contains=bbExportFlag,bbIdentifier,bbVarDeref 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,bbVarDeref |