Richard Hartmann schrieb:
> Hi all,
> 
> Problem:
> vim zsh syntax file gets confused by curly brackets in single quotes.
> 
> 
> Test cases:
> A=${foo['A']}
> B=${foo['{']}
> C=${foo['C']}
> 
> A=${foo['A']}
> B=${foo['}']}
> C=${foo['C']}
> 
> Lines 1 and 3 are irrelevant to the outcome, they just provide examples
> of correct and broken syntax hilighting. If you put both examples into one
> file, you can see that the brackets are not detected as escaped.
> 
> 
> Patch:
> None, I failed at coming up with a solution.
> 
> 
> Richard

I made a local copy of $VIMRUNTIME\syntax\zsh.vim (Latest Revision:
2007-06-17) in my ~\vimfiles\syntax folder and changed the line 133 by
adding "contains=zshString":

:syn region  zshSubst matchgroup=zshSubstDelim start='\${' skip='\\}'
        \ end='}' [EMAIL PROTECTED],zshBrackets,zshQuoted,zshString

This might fix the bug.

-- 
Andy


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

Raspunde prin e-mail lui