On 05/28/2015 13:27, Charles Campbell wrote:
and don't see $'...' supported by posix.  I saw in looking through your
link that there was $"...", too.  So, yes, its easy to get
syntax/sh.vim's posix mode to support that extra syntax, but its not
posix shell syntax, so I don't think it should be supported that way.
Would setting   let g:is_bash=1  do the trick for you?

There are a lot of various shells with different syntaxes. I looked into sh.vim, it is quite a patchwork. FreeBSD shell I am using is an extension of the original Bourne shell. It has been extended and improved 2-3 years ago, and I don't think sh.vim reflects this. sh.vim should be cleaned up, starting from categorization of which distinct shells are available, and reflecting this in the options.

Option g:is_bash is an obvious hack, because syntaxes are clearly different.

Yuri

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