From 058bc93b29fcdc7b0e5e6eeba068e21633ac3273 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Thu, 12 Sep 2013 17:37:44 +0200 Subject: [PATCH] Add rspec file support --- build.sh | 1 + syntax/vim-rspec.vim | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 syntax/vim-rspec.vim diff --git a/build.sh b/build.sh index 8e8e64b..6e4ea96 100755 --- a/build.sh +++ b/build.sh @@ -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 diff --git a/syntax/vim-rspec.vim b/syntax/vim-rspec.vim new file mode 100644 index 0000000..57adeec --- /dev/null +++ b/syntax/vim-rspec.vim @@ -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