Re: [vim/vim] runtime(vim): Update base syntax, contain more ex commands (PR #20995)
Aliaksei Budavei (Vim Github Repository) <[email protected]>
| Newsgroups | gmane.editors.vim.devel |
|---|---|
| Message-ID | <vim/vim/pull/20995/[email protected]> |
zzzyxwvut left a comment (vim/vim#20995)
User-command arguments, when _given_, have lost their lustre
as of #19331:
https://github.com/vim/vim/blob/ecfea491aa964311a42f888277da7911c9d6900d/runtime/syntax/sh.vim#L418-L426
I currently patch up a copy of `vimUsrCmd` on the fly from
an `after` script.
```vim
" Define g:OverrideSyntaxRuleOptArgs etc.
runtime synutils.vim
call g:OverrideSyntaxRuleOptArgs('vimUsrCmd',
\ 'nextgroup=vimBang,vimHighlight,vimSyntax skipwhite',
\ {a -> (a =~# '^skipwhite$')
\ ? ''
\ : (a =~# '^nextgroup=vimBang$')
\ ? a .. ',vimHighlight,vimSyntax skipwhite'
\ : a})
```
--
Reply to this email directly or view it on GitHub:
https://github.com/vim/vim/pull/20995#issuecomment-5273370100
You are receiving this because you are subscribed to this thread.
Message ID: <vim/vim/pull/20995/[email protected]>
--
--
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/vim/vim/pull/20995/c5273370100%40github.com.