New sharness/test vim syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux