runtime(vim): Add support for <ScriptCmd> syntax (#10686)

Commit: 
https://github.com/vim/vim/commit/80beeef0c6a4c44b190631725bce3dcc5635e3ee
Author: dezza <[email protected]>
Date:   Wed Jan 3 16:20:22 2024 +0100

    runtime(vim): Add support for <ScriptCmd> syntax 
(https://github.com/vim/vim/issues/10686)
    
    Adding `<ScriptCmd>` to list of angle-bracket notation syntax, just like 
`<Cmd>`
    
    `<Cmd>` is already highlighted.
    ```vim
    nnoremap <leader>o <Cmd>Oldfiles()<CR>
    ```
    
    `<ScriptCmd>` is not.
    
    Signed-off-by: dezza <[email protected]>
    Signed-off-by: Doug Kearns <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/syntax/vim.vim b/runtime/syntax/vim.vim
index 08414a62d..d0f66d1ae 100644
--- a/runtime/syntax/vim.vim
+++ b/runtime/syntax/vim.vim
@@ -487,7 +487,7 @@ syn match   vimMenuBang     "!"     contained skipwhite 
nextgroup=@vimMenuList
 " Angle-Bracket Notation: (tnx to Michael Geddes) {{{2
 " ======================
 syn case ignore
-syn match      vimNotation     
"\%#=1\(\\|<lt>\)\=<\([scamd]-\)\{0,4}x\=\(f\d\{1,2}\|[^        
:]\|cmd\|cr\|lf\|linefeed\|retu\%[rn]\|k\=del\%[ete]\|bs\|backspace\|tab\|esc\|right\|left\|help\|undo\|insert\|ins\|mouse\|k\=home\|k\=end\|kplus\|kminus\|kdivide\|kmultiply\|kenter\|kpoint\|space\|k\=\(page\)\=\(\|down\|up\|k\d\>\)\)>"
 contains=vimBracket
+syn match      vimNotation     
"\%#=1\(\\|<lt>\)\=<\([scamd]-\)\{0,4}x\=\(f\d\{1,2}\|[^        
:]\|cmd\|scriptcmd\|cr\|lf\|linefeed\|retu\%[rn]\|k\=del\%[ete]\|bs\|backspace\|tab\|esc\|right\|left\|help\|undo\|insert\|ins\|mouse\|k\=home\|k\=end\|kplus\|kminus\|kdivide\|kmultiply\|kenter\|kpoint\|space\|k\=\(page\)\=\(\|down\|up\|k\d\>\)\)>"
 contains=vimBracket
 syn match      vimNotation     
"\%#=1\(\\|<lt>\)\=<\([scam2-4]-\)\{0,4}\(right\|left\|middle\)\(mouse\)\=\(drag\|release\)\=>"
 contains=vimBracket
 syn match      vimNotation     
"\%#=1\(\\|<lt>\)\=<\(bslash\|plug\|sid\|space\|bar\|nop\|nul\|lt\)>"           
        contains=vimBracket
 syn match      vimNotation     '\(\\|<lt>\)\=<C-R>[0-9a-z"%#:.\-=]'he=e-1      
                        contains=vimBracket

-- 
-- 
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 on the web visit 
https://groups.google.com/d/msgid/vim_dev/E1rL3C7-00AvHs-6I%40256bit.org.

Raspunde prin e-mail lui