On 2018-05-24, Gary Johnson wrote:
> On 2018-05-24, cecamp wrote:
>
> > Please try the latest syntax/sh.vim from my website (v177):
> > http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH
>
> That's really nice! It fixes a problem I've seen for quite a while
> with single-quotes/apostrophes within shell comments. Thank you.
I may have written too soon. While this version does solve that
problem, it introduces another. Given the following file,
set -o ignoreeof #
shopt -s extglob
and this command,
$ vim -N -u NONE -i NONE -c 'let b:is_bash=1' -c 'set ft=sh' -c 'syn on'
file
the word "shopt" is highlighted as shSetList instead of shStatement.
Deleting the '#' fixes the highlighting so that "shopt" is
highlighted as shStatement.
Another problem is that "extglob" is not given any highlighting at
all. It should probably be Identifier (like shSetList), as
"ignoreeof" is.
Regards,
Gary
--
--
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.