Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Add RSpec syntax files

  • Loading branch information...
1 parent c06e830 commit d699be12133916902b70fe164f41bd5db53c3ef6 aereal committed
Showing with 29 additions and 0 deletions.
  1. +1 −0  .vim/after/ftdetect/rspec.vim
  2. +28 −0 .vim/syntax/rspec.vim
1  .vim/after/ftdetect/rspec.vim
@@ -0,0 +1 @@
+au BufNewFile,BufRead *_spec.rb set ft+=.rspec
28 .vim/syntax/rspec.vim
@@ -0,0 +1,28 @@
+syn keyword rspecBefore before
+syn keyword rspecAfter after
+syn keyword rspecAround around
+syn keyword rspecSubject subject
+syn keyword rspecExampleGroup describe context shared_examples shared_context
+syn keyword rspecExample it its specify
+syn keyword rspecExample it_behaves_like
+syn keyword rspecExample it_should_behaves_like
+syn keyword rspecExample include_examples
+syn keyword rspecPending pending
+syn keyword rspecLet let
+syn keyword rspecExpectation should should_not to to_not not_to
+hi def link rspecBefore rspecFilter
+hi def link rspecAfter rspecFilter
+hi def link rspecAround rspecFilter
+hi def link rspecSubject rspecStructure
+hi def link rspecExampleGroup rspecStructure
+hi def link rspecExample rspecStructure
+hi def link rspecPending rspecStructure
+hi def link rspecLet rspecStructure
+hi def link rspecFilter PreProc
+hi def link rspecStructure Statement
+hi def link rspecExpectation Keyword

0 comments on commit d699be1

Please sign in to comment.
Something went wrong with that request. Please try again.