sergio wrote:
Hello.

autocmd BufNewFile *.zsh call append( 0, [
  \ '#!/bin/zsh',
  \ '' ] )

vim highlights last ')' with red background as an error, but there is no error.

This occurs due to the continuation. There's a tradeoff involved; fixing this sort of thing would require a lot of nextgroups and additional syntax, going away from fast keyword recognition to regular expression based matches and regions, and a significant increase in size of syntax/vim.vim, perhaps doubling it. Its not the largest syntax file (muttrc.vim has that honor), but doubling its size would make it the largest by far.

Try putting

  let g:vimsyn_noerror= 1

in your .vimrc if this bothers you overmuch.

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

Reply via email to