2

I'm using Tim Pope's rails.vim plugin and for the most part it highlights nearly everything I want, except Capybara's new DSL which contains keywords like feature, scenario, background etc.

I don't want to create a new syntax file just for those two keywords, just need to add them to the existing one.

Cœur
  • 37,241
  • 25
  • 195
  • 267
sent-hil
  • 18,635
  • 16
  • 56
  • 74

1 Answers1

0

Found rails.vim file which holds syntax stuff and added the keywords.

elseif buffer.type_name('spec') syn keyword rubyRailsTestMethod describe context it its specify shared_examples_for it_should_behave_like before after subject fixtures controller_name helper_name feature scenario background

This answer gave me the hint where to look: Automate rails.vim

Community
  • 1
  • 1
sent-hil
  • 18,635
  • 16
  • 56
  • 74