runtime(bitbake): support forward-slashes in bitbake varflags

Commit: 
https://github.com/vim/vim/commit/2041478e2a4f58269847551f4a9e0206364ae121
Author: Martin Schwan <[email protected]>
Date:   Wed Apr 15 18:07:18 2026 +0000

    runtime(bitbake): support forward-slashes in bitbake varflags
    
    Enable syntax highlighting for forward-slashes in Bitbake variables with
    varflags. Bitbake allows for forward-slashes in both the variable name
    and their potential varflags. E.g. the following should match:
    
        FOO_BAR[baz] = "foobar"
        FOO_BAR_foo/bar[baz] = "foobar"
        FOO_BAR_foo/bar[baz/bazzer] = "foobar"
    
    Also allow plus-signs in variable names, to be in line with normal
    variable names.
    
    related: #19983
    
    Signed-off-by: Martin Schwan <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/syntax/bitbake.vim b/runtime/syntax/bitbake.vim
index 9fea3e291..ac494cf44 100644
--- a/runtime/syntax/bitbake.vim
+++ b/runtime/syntax/bitbake.vim
@@ -7,6 +7,7 @@
 " Last Change:  2022 Jul 25
 " 2025 Oct 13 by Vim project: update multiline function syntax #18565
 " 2026 Apr 07 by Vim project: update syntax script #19931
+" 2026 Apr 15 by Vim project: allow forward-slashes in bitbake varflags #19983
 "
 " This file is licensed under the MIT license, see COPYING.MIT in
 " this source distribution for the terms.
@@ -59,7 +60,7 @@ syn match bbVarValue            ".*$" contained 
contains=bbString,bbVarDeref,bbV
 syn region bbVarPyValue         start=+${@+ skip=+\$+ end=+}+ contained 
contains=@python
 
 " Vars metadata flags
-syn match bbVarFlagDef          
"^\([a-zA-Z0-9\-_\.]\+\)\(\[[a-zA-Z0-9\-_\.+]\+\]\)\@=" contains=bbIdentifier 
nextgroup=bbVarFlagFlag
+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
 
 " Includes and requires

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1wD4lU-004PH0-9X%40256bit.org.

Raspunde prin e-mail lui