Skip to contentSkip to conversation

Khem Raj : vim/syntax: Recognize ?? operator

PATCH [email protected] 1 participant 1 message Dec 20, 2011

lore
Share & tools
lore
#0 lore raw
Module: bitbake.git
Branch: master
Commit: 5337ed86820ab0a2cbb3fd82eb11edb807c47f54
URL:    http://git.openembedded.org/?p=bitbake.git&a=commit;h=5337ed86820ab0a2cbb3fd82eb11edb807c47f54
Author: Khem Raj <[email protected]>
Date:   Sat Dec 10 10:25:57 2011 -0800

vim/syntax: Recognize ?? operator

---

 contrib/vim/syntax/bitbake.vim |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
contrib/vim/syntax/bitbake.vim +2 -2
index a06dd9e..336e6bb 100644
@@ -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