Christian Brabandt wrote:
>
> I think, the problem is this line from sh.vim (distributed with vim):
>
> |syn region shCaseEsac matchgroup=shConditional start="\<select\s"
> matchgroup=shConditional end="\<in\>" end="\<do\>" contains=@shLoopList |
>
> which matches the xcode-select command. Something like this might work:
>
> diff --git a/runtime/syntax/sh.vim b/runtime/syntax/sh.vim
> index 15a00eb..cbf10fb 100644
> --- a/runtime/syntax/sh.vim
> +++ b/runtime/syntax/sh.vim
> @@ -240,7 +240,7 @@ if exists("b:is_kornshell") || exists("b:is_bash")
>   syn cluster shFunctionList    add=shRepeat
>   syn region shRepeat   matchgroup=shLoop   start="\<while\_s" end="\<in\_s" 
> end="\<do\>"me=e-2 contains=@shLoopList,shDblParen,shDblBrace
>   syn region shRepeat   matchgroup=shLoop   start="\<until\_s" end="\<in\_s" 
> end="\<do\>"me=e-2 contains=@shLoopList,shDblParen,shDblBrace
> - syn region shCaseEsac matchgroup=shConditional start="\<select\s"
> matchgroup=shConditional end="\<in\>" end="\<do\>" contains=@shLoopList
> + syn region shCaseEsac matchgroup=shConditional
> start="-\@<!\<select\s" matchgroup=shConditional end="\<in\>"
> end="\<do\>" contains=@shLoopList
>  else
>   syn region shRepeat   matchgroup=shLoop   start="\<while\_s" 
> end="\<do\>"me=e-2               contains=@shLoopList
>   syn region shRepeat   matchgroup=shLoop   start="\<until\_s" 
> end="\<do\>"me=e-2               contains=@shLoopList
>
This is a solution, but inadequate, I'm afraid.  The right solution
(now, for the 3rd time): use a vim with patch 1141, along with
syntax/sh.vim v145.

Regards,
Chip Campbell

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui