Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@bronson 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

This comment has been minimized.

Copy link

@JonRowe 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