From 94c916d7f09ca019cd6f96cd32e78960315645a1 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 10 Dec 2011 10:25:57 -0800 Subject: vim/syntax: Recognize ?? operator (Bitbake rev: 5337ed86820ab0a2cbb3fd82eb11edb807c47f54) Signed-off-by: Khem Raj Signed-off-by: Richard Purdie --- bitbake/contrib/vim/syntax/bitbake.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitbake/contrib') diff --git a/bitbake/contrib/vim/syntax/bitbake.vim b/bitbake/contrib/vim/syntax/bitbake.vim index a06dd9e0ac..336e6bb15a 100644 --- a/bitbake/contrib/vim/syntax/bitbake.vim +++ b/bitbake/contrib/vim/syntax/bitbake.vim @@ -52,8 +52,8 @@ syn match bbExport "^export" nextgroup=bbIdentifier skipwhite syn keyword bbExportFlag export contained nextgroup=bbIdentifier skipwhite syn match bbIdentifier "[a-zA-Z0-9\-_\.\/\+]\+" display contained syn match bbVarDeref "${[a-zA-Z0-9\-_\.\/\+]\+}" contained -syn match bbVarEq "\(:=\|+=\|=+\|\.=\|=\.\|?=\|=\)" contained nextgroup=bbVarValue -syn match bbVarDef "^\(export\s*\)\?\([a-zA-Z0-9\-_\.\/\+]\+\(_[${}a-zA-Z0-9\-_\.\/\+]\+\)\?\)\s*\(:=\|+=\|=+\|\.=\|=\.\|?=\|=\)\@=" contains=bbExportFlag,bbIdentifier,bbVarDeref nextgroup=bbVarEq +syn match bbVarEq "\(:=\|+=\|=+\|\.=\|=\.\|?=\|??=\|=\)" contained nextgroup=bbVarValue +syn match bbVarDef "^\(export\s*\)\?\([a-zA-Z0-9\-_\.\/\+]\+\(_[${}a-zA-Z0-9\-_\.\/\+]\+\)\?\)\s*\(:=\|+=\|=+\|\.=\|=\.\|?=\|??=\|=\)\@=" contains=bbExportFlag,bbIdentifier,bbVarDeref nextgroup=bbVarEq syn match bbVarValue ".*$" contained contains=bbString,bbVarDeref,bbVarPyValue syn region bbVarPyValue start=+${@+ skip=+\\$+ excludenl end=+}+ contained contains=@python -- cgit v1.2.3-54-g00ecf