Saturday, May 19, 2012

Re: bash syntax highlight incorrectly (-print)

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.

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

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: