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

15 views
Skip to first unread message

Ni Va

unread,
Jun 11, 2022, 1:11:29 PMJun 11
to vim_use
Hi,

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. 😊 
Nicolas Capture.PNG

Bram Moolenaar

unread,
Jun 11, 2022, 1:53:57 PMJun 11
to vim...@googlegroups.com, Ni Va, C Campbell

> 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 ///

Ni Va

unread,
Jun 11, 2022, 3:29:24 PMJun 11
to vim_use
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. 😊 

Ni Va

unread,
Jun 12, 2022, 3:18:25 AMJun 12
to vim_use
Strange thing, it seems that solarized thème applied, thé error red : char disappear. 

N V

unread,
Jun 14, 2022, 7:18:44 AMJun 14
to vim_use
Thanks à lot for our eyes Bram, it is fixed since 6ba83ba9ee292f68aa0b218b3eef42db31c0b632
I wish you à Good Day
NV

Reply all
Reply to author
Forward
0 new messages