New sharness/test vim syntax
- From
Felipe Contreras <felipe.contreras@gmail.com>
- Date
- Nov 26, 2020, 10:24 UTC
- Message-ID
- <CAMP44s1D-Zp3KDS+Hi74a=Lkc7Nc_0qiEzQEF0Pmj=bD8i+=JQ@mail.gmail.com>
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