All of lore.kernel.org
 help / color / mirror / Atom feed
* New sharness/test vim syntax
@ 2020-11-26 10:24 Felipe Contreras
  2020-12-08 17:56 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Felipe Contreras @ 2020-11-26 10:24 UTC (permalink / raw)
  To: Git

Hello,

It gets a bit tedious to see all the tests in the same color, so I
wrote my own vim syntax file so that at least the body of
test_expect_success is highlighted properly.

I've updated it to make it handle more cases, and the result doesn't
look bad at all:

https://i.imgur.com/qDgvjtu.png

You can find it on my dotfiles:

https://github.com/felipec/dotfiles/blob/master/.vim/syntax/sharness.vim

What I do is place it on ~/.vim/syntax/sharness.vim, and then add the
following to my ~/.vimrc:

  au! BufRead,BufNewFile */git/t/*.sh set ft=sharness

I hope you find this useful.

Cheers.

-- 
Felipe Contreras

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-12-09  0:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-26 10:24 New sharness/test vim syntax Felipe Contreras
2020-12-08 17:56 ` Jeff King
2020-12-08 21:54   ` Emily Shaffer
2020-12-09  0:30     ` Felipe Contreras

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.