Patchwork [bitbake-devel] bitbake.vim: fix highlighing for ??= operator

login
register
mail settings
Submitter Khem Raj
Date Nov. 7, 2013, 3:10 p.m.
Message ID <1383837035-29410-1-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/61263/
State New
Headers show

Comments

Khem Raj - Nov. 7, 2013, 3:10 p.m.
equation is OK but operator itself is highlighted
which is odd

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 contrib/vim/syntax/bitbake.vim | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/contrib/vim/syntax/bitbake.vim b/contrib/vim/syntax/bitbake.vim
index fb55f91..0cad484 100644
--- a/contrib/vim/syntax/bitbake.vim
+++ b/contrib/vim/syntax/bitbake.vim
@@ -59,7 +59,7 @@  syn region bbVarPyValue         start=+${@+ skip=+\\$+ end=+}+ contained contain
 
 " Vars metadata flags
 syn match bbVarFlagDef          "^\([a-zA-Z0-9\-_\.]\+\)\(\[[a-zA-Z0-9\-_\.]\+\]\)\@=" contains=bbIdentifier nextgroup=bbVarFlagFlag
-syn region bbVarFlagFlag        matchgroup=bbArrayBrackets start="\[" end="\]\s*\(=\|+=\|=+\|?=\)\@=" contained contains=bbIdentifier nextgroup=bbVarEq
+syn region bbVarFlagFlag        matchgroup=bbArrayBrackets start="\[" end="\]\s*\(=\|+=\|=+\|?=\|??=\)\@=" contained contains=bbIdentifier nextgroup=bbVarEq
 
 " Includes and requires
 syn keyword bbInclude           inherit include require contained