Saturday, June 16, 2012

Re: bash syntax highlight incorrectly (-print)

Peng Yu wrote:
> On Sat, May 19, 2012 at 10:08 PM, Charles E Campbell Jr
> <drchip@campbellfamily.biz> wrote:
>
>> Peng Yu wrote:
>>
>>> Hi,
>>>
>>> The following code doesn't get syntax highlighted correctly (the for
>>> loop). I'm not sure who I should report the bug to. Does anybody know?
>>>
>>> #!/usr/bin/env bash
>>>
>>> files=(`find . -type d -print`)
>>>
>>> for "${files[@]}"
>>> do
>>> done
>>>
>>>
>>
>> Look into the file vim73/syntax/sh.vim; therein you'll find the
>> maintainer's name and (usually) his/her email.
>>
> OK.
>
>
>> It just so happens that I saw this, and as I'm the maintainer ... well, try
>> http://www.drchip.org/astronaut/vim/index.html#vimlinks_syntax and download
>> sh.vim.gz . Decompress (with gunzip; if you're a Windows user, see :help
>> vimball-windows ), and place in $HOME/.vim/syntax (ie. your personal
>> syntax scripts). You'll be getting v124 of syntax/sh.vim. Please try it
>> with a number of scripts and let me know, please, of any further problems.
>> I haven't submitted it to Bram yet...
>>
> No, the ')' is not correctly highlighted. Did you try my example? And
> you didn't see the problem?
>
>
I haven't been near a computer for about two weeks; now that I am --
I've tried your example and it displayed fine.

Regards,
Chip Campbell

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

No comments:

Post a Comment