On Sun, Jul 29, 2018 at 7:37 AM, John Little <john.b.lit...@gmail.com> wrote: > With the vim 8.1.0224 from git, I see the problem.
Thanks for your help. > The maintainer of sh.vim has fixed quoting problems in his latest version, > 179, at http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH and indeed > version 179 colours your snippet correctly for me; it works with the 8.0.1453 > I get with my distro, derived from Ubuntu 18.04, so I expect it will work for > you. > Confirm that using the 179 version fixed the problem. For the record, my vim version is 8.0.707 and I just copied the sh.vim to ~/.vim/syntax . > I imagine your snippet is a minimal example of the problem, kudos for that, > but still looks pathological to me; I avoid tricky stuff like that for the > sake of my sanity. Yes.The snippet I provided is a minimal example. The UPSTREAM=${1:-'@{u}'} sets UPSTREAM variable to the first argument. If no such argument is supplied, it uses @u which represents the upstream branch (in git parlance). If you are curious, the complete script is at https://github.com/KamarajuKusumanchi/rutils/blob/master/bin/git-up . regards raju -- Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog -- -- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.