Saturday, June 11, 2022

Re: default colorscheme highlights in red the : char in signature g:Func defined vim9script

> default colorscheme highlights in red the : char of g:Func defined
> vim9script function.
>
> Just updated the vimrc_example.vim in vim9script, it displays the red :
> char.
>
> It's disturbing for eyes. 𐟘Š

I noticed it too, and it looks like it's highlighting an error, even
though it is just fine. It probably happens because there is no "call"
before the function name.

I can fix it by dropping "vimCommand" from the contains list of the "syn
match vimFunc" line in the vim.vim syntax file. But it probably has
side effects.

--
Q: Why does /dev/null accept only integers?
A: You can't sink a float.

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20220611175347.00E2D1C1809%40moolenaar.net.

No comments:

Post a Comment