On 4 Jun 2019, at 19:10, Bram Moolenaar <
Br...@moolenaar.net> wrote:
>
>
>> I have tried to contact the author of hitest.vim a few days ago, but didn’t get any answer yet. Anyway, hopefully it’s on this list, too.
>>
>> I get E348 with runtime syntax/hitest.vim when whichwrap is set to a value different from the default. To reproduce:
>>
>> 1. create vimrc-hitest with the following content:
>>
>> set whichwrap=b,~,<,>,[,],h,l
>> hi StatusLine guifg=#64878f guibg=#ffffff guisp=NONE gui=reverse cterm=reverse
>> hi! link StatusLineTerm StatusLine
>>
>> 2. vim -N -i NONE -u vimrc-hitest
>>
>> 3. runtime syntax/hitest.vim
>>
>> The proposed patch fixes it for me. It also adds ‘silent' to the highlight command to avoid flashing the screen.
>
> Thanks. I still see a flash, caused by this line:
>
> global /links to/ normal mz3ElD0#$p'zdd
>
> Appears for a "links to Something" when "Something" is not defined.
> I'll add a silent! here, but it's not really the right solution.
I do not see that. Perhaps, I have not encountered such cases.
> It's also quite slow, there should be a way to make it much faster.
From a user point of view, I do not perceive it as too slow, although it may be compared to what it does.
> It also leaves some names at the end, which can be fixed with:
> g/ cleared$/d
The enclosed patch adds the changes you mention.
> --
> % cat /usr/include/life.h
> void life(void);
Noo! Maybe, long life(double fun);
Is your signature generator really random?
Life.