Skip to content

Commit

Permalink
Add RSpec syntax files
Browse files Browse the repository at this point in the history
  • Loading branch information
aereal committed Mar 5, 2012
1 parent c06e830 commit d699be1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions .vim/after/ftdetect/rspec.vim
@@ -0,0 +1 @@
au BufNewFile,BufRead *_spec.rb set ft+=.rspec
28 changes: 28 additions & 0 deletions .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.