Add rspec file support

This commit is contained in:
Adam Stankiewicz 2013-09-12 17:37:44 +02:00
parent 8e46fc0007
commit 058bc93b29
2 changed files with 22 additions and 0 deletions

View File

@ -69,6 +69,7 @@ syntax 'chrisbra/csv.vim' &
syntax 'elixir-lang/vim-elixir' &
syntax 'jimenezrick/vimerl' &
syntax 'tpope/vim-git' &
syntax 'skwp/vim-rspec' &
wait

21
syntax/vim-rspec.vim Normal file
View File

@ -0,0 +1,21 @@
syntax match rspecHeader /^*.*/
syntax match rspecTitle /^\[.\+/
syntax match rspecOk /^+.\+/
syntax match rspecOk /PASS.\+/
syntax match rspecError /^-.\+/
syntax match rspecError /FAIL.\+/
syntax match rspecError /^|.\+/
syntax match rspecErrorDetail /^ \w.\+/
syntax match rspecErrorURL /^ \/.\+/
syntax match rspecNotImplemented /^#.\+/
syntax match rspecCode /^ \d\+:/
syntax match rspecNotImplemented /Example disabled.*/
highlight link rspecHeader Identifier
highlight link rspecTitle Identifier
highlight link rspecOk Statement
highlight link rspecError Error
highlight link rspecErrorDetail Constant
highlight link rspecErrorURL PreProc
highlight link rspecNotImplemented Todo
highlight link rspecCode Type