Skip to content

Instantly share code, notes, and snippets.

@technicalpickles
Created February 15, 2009 07:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save technicalpickles/64635 to your computer and use it in GitHub Desktop.
Save technicalpickles/64635 to your computer and use it in GitHub Desktop.
if expand('%') =~# '_spec\.rb$'
syn keyword rubyRspec describe context it specify it_should_behave_like before after setup subject
endif
hi def link rubyRspec Function
@bronson
Copy link

bronson commented Mar 5, 2011

Nice!! I find this works better in my .vimrc:

autocmd BufRead *_spec.rb syn keyword rubyRspec describe context it specify it_should_behave_like before after setup subject
highlight def link rubyRspec Function

@JonRowe
Copy link

JonRowe commented May 19, 2011

missing some keywords, such as its shared_examples_for and shared_context (new in 2.6) as per https://gist.github.com/980679

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment