Henry John Kupty wrote:
>
> Hi.
>
> The following snippet breaks the syntax highlight, making it consider
> from this check onwards until the end of the file a string:
>
> if [ -n "${arg%{*}" ]; then
> echo $arg
> fi
>
> Trying to work around the bug by adding a comment closing the block
> makes it even worse:
>
> if [ -n "${arg%{*}" ]; then #}"
> echo $arg
> fi
>
> I tested this on vim 8.0.
>
> Thanks in advance!
>
>
I suspect that what you want is:
if [ -n "${arg%{*}}" ]; then
echo $arg
fi Note the additional closing curly brace. 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.