language-ruby icon indicating copy to clipboard operation
language-ruby copied to clipboard

Different keyword for function and class definitions.

Open joseramonc opened this issue 10 years ago • 1 comments

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.

joseramonc avatar Apr 07 '15 04:04 joseramonc

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.

mamenama avatar Nov 18 '15 23:11 mamenama