Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add RSpec syntax files

  • Loading branch information...
commit d699be12133916902b70fe164f41bd5db53c3ef6 1 parent c06e830
aereal authored
Showing with 29 additions and 0 deletions.
  1. +1 −0  .vim/after/ftdetect/rspec.vim
  2. +28 −0 .vim/syntax/rspec.vim
View
1  .vim/after/ftdetect/rspec.vim
@@ -0,0 +1 @@
+au BufNewFile,BufRead *_spec.rb set ft+=.rspec
View
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
+
Please sign in to comment.
Something went wrong with that request. Please try again.