aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/vim
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-12-08 21:05:42 +0000
committerChris Larson <clarson@kergoth.com>2004-12-08 21:05:42 +0000
commite234b8ac086a7f5a296ea3168dfb20789147af82 (patch)
tree8dce958da7123843c2e8352583b7edc4964eecb1 /contrib/vim
parent24fb9f524f1d40846983e8ede5f78573a11542fc (diff)
downloadbitbake-e234b8ac086a7f5a296ea3168dfb20789147af82.tar.gz
bitbake-e234b8ac086a7f5a296ea3168dfb20789147af82.tar.bz2
bitbake-e234b8ac086a7f5a296ea3168dfb20789147af82.zip
Vim syntax: match variables defined using ?=.
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 f32396bd..0f9e19f6 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