Ryuichi Hayashida wrote:
> I found that syntax highlight in Vim script is broken in some situation.
> When nested substitute() calls are in code, first one is highlighted as
> vimFuncName and second one is highlighted as vimSubst.
>
> How to reproduce this is saving below code as blah.vim and open it in vim
> with :syntax enable.
>
> function! F()
> let foo = substitute(substitute('a', 'a', 'b', ''), 'b', 'c', '')
> endfunction
>
> substitute() causes this problem but empty() doesn't cause this problem. I'll
> attach a screenshot for this in this mail.
> I tried to fix this. But syntax/vim.vim was generated by script and I could
> not find it. So I'm reporting it as issue here.
>
> My environment is
>
> - macOS 10.12
> - Vim 8.0 (1-124)
> - MacVim on terminal
The Vim syntax file is maintained by Charles Campbell.
--
Your fault: core dumped
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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].
For more options, visit https://groups.google.com/d/optout.