Erik Falor wrote:
> On Sun, Nov 23, 2008 at 05:56:41PM +0100, François Ingelrest wrote:
>   
>> Hi all,
>>
>> No news on this issue?
>>
>> On Wed, Nov 5, 2008 at 17:10, François Ingelrest
>> <[EMAIL PROTECTED]> wrote:
>>     
>>> Hi all,
>>>
>>> If I put this in a foo.vim file:
>>>
>>> ----
>>> highlight Comment guifg=White guibg=Black
>>>
>>> function! Foo()
>>>
>>>    highlight Comment guifg=White guibg=Black
>>>
>>> endfunction
>>> ----
>>>
>>> The first "highlight" line is highlighted, but not the second one. It
>>> seems that's because it's inside a function. Is it intended, or is
>>> this a bug in the vim syntax file?
>>>       
>
> After looking at syntax/vim.vim, I noticed that the syntax cluster
> that defines what's allowed within a function body didn't include the
> syntax item for highlights.  Neither did it include the syntax item for
> abbreviations.  I added those lines, and re-set the 'filetype' option,
> and sure enough, the highlight and abbrev keywords were highlighted.
> For all I know, there are other Vim script elements that aren't being
> highlighted as well.
>
> Offhand, I'd say that this is merely an oversight.  Dr. Chip, would
> you care to weigh in on this?
>
> I've attached the patch with the aforementioned changes.
>
>   
I've had a syntax/vim.vim, last modified Nov 7, that had vimHighlight in 
it.  Still didn't have vimAbb, though; however, the header said "NOT 
RELEASED" so it hasn't been on my website, I'm afraid.  I've updated my 
website: 
http://mysite.verizon.net/astronaut/vim/index.html#vimlinks_syntax.  
Eventually I'll push it on up to the Official Vim Master (aka Bram 
Moolenaar).

Regards,
Chip Campbell



--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui