tpope / vim-rails

rails.vim: Ruby on Rails power tools
http://www.vim.org/scripts/script.php?script_id=1567
4.09k stars 381 forks source link

Add rspec focused keywords to syntax #568

Closed dgmora closed 3 years ago

dgmora commented 3 years ago

RSpec has some extra methods to run focused tests, could we add those too so there's syntax highlighting?

tpope commented 3 years ago

I'm thinking in the same way we highlight the xdescribe family as Comment, we should highlight these as a different group. Debug would be a good choice. A one letter change that fundamentally alters behavior is perhaps the perfect use of syntax highlighting. Can you try adding hi def link rubyDebug Debug and using that group and see how you feel about the result?

dgmora commented 3 years ago

I think it makes sense and it's more flexible. For solarized it doesn't change much but then you can tweak that to your taste.

Screenshot 2020-09-27 at 18 20 53.

Should then the hi def link rubyDebug Debug be added to vim-ruby?

tpope commented 3 years ago

Nah it should live here until vim-ruby has an independent need for it.