Sunday, June 12, 2022

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

Strange thing, it seems that solarized thème applied, thé error red : char disappear. 

https://github.com/lifepillar/vim-solarized8.git

Le samedi 11 juin 2022 à 21:29:24 UTC+2, Ni Va a écrit :
Yes it's highlighting error. Thought it was due to sacredforest colorscheme but no. 

Yes it seems to be a fix on vim syntax focused on Func declarative signature. 😊 

Le samedi 11 juin 2022 à 19:53:57 UTC+2, Bram Moolenaar a écrit :

> 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 -- Br...@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/40f1fb59-ed06-416b-921c-810a03fc805en%40googlegroups.com.

No comments: