Home Download Buy Blog Forum Support

Ruby Local Variable Syntax Highlighting

Ruby Local Variable Syntax Highlighting

Postby StlTenny on Sat Jan 19, 2013 8:19 pm

I am trying to get syntax highlighting for ruby local variables working, and I can't seem to figure it out. I believe it should be possible but i am not sure.

Here is my goal. For instance and class variables I have them highlighted in the burnt orange color (see #1). I would like the same for local variables (see #2).

Screen-Shot-2013-01-19-at-2.49.35-PM.png
Screen-Shot-2013-01-19-at-2.49.35-PM.png (41.69 KiB) Viewed 300 times


Using command + option + p on the local variables, such as children or next_category_id reveals that it is in the ruby.source scope so it would seem that there is no match for it under the Ruby.tmLanguage file.

Has anyone overcome this problem? Is there an easy way to add coloring, maybe a Regex to the Ruby.tmLanguage file to recognize it? Am I overthinking this?
StlTenny
 
Posts: 1
Joined: Sat Jan 19, 2013 8:07 pm

Re: Ruby Local Variable Syntax Highlighting

Postby AGS on Sun Feb 24, 2013 4:02 pm

An progress on this?
AGS
 
Posts: 32
Joined: Mon Aug 20, 2012 5:58 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 10 guests