For example, in the following class, I want syntax highlighting for helper_method(@x, @y)
(line 1 in the main method.)
class test def new(x, y) @x = x @y = y end def main result = helper_method(@x, @y) puts result end def helper_method(x, y) // do stuff with x, y endend
I wonder why the current highlighting scheme doesn't do that as it seems valuable to me to see where I call my methods and where I just use baked-in commands and expressions. Can I change that, for Atom?
Here some screenshots to further illustrate my problem:
In the first screenshot I expect get_time_limit_for_source(order_source)
to be highlighted:
It is a method that is defined in the same class:
Interestingly, in my example code, the highlighting is exactly as I want it:
The highlighting in the test class is as I want it, but in this case is due to the use of the helper word which triggers highlighting when language-ruby-on-rails
is installed/activated.