language-ruby
language-ruby copied to clipboard
Different keyword for function and class definitions.
Some syntaxes (like Solarized Dark and Solarized Light) need special highlight for function and class definitions.
The problem is that I can't find a way to differentiate the blocks ends from functions and classes ends.
Is there a way to do:
class Foo
def bar
[].each do |e|
end # normal end (no special color) 👍
end # <--- Special class (close def)
end # <--- Special class (close class)
I'd be happy to try to help if you're open to some help.
Not a solution, but just came across a plugin called ruby-block that highlights the matching parent when you are over a corresponding end. It helps with but doesn't entirely solve your issue. Agree it would be nice to have this implemented.