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 872 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

Re: Ruby Local Variable Syntax Highlighting

Postby Inkling on Sat Dec 14, 2013 5:58 am

viewtopic.php?f=6&t=13720
This was the best I could find. It's not perfect because of the nature of Ruby variable/method syntax, but it still gets things right the vast majority of the time.
Inkling
 
Posts: 4
Joined: Mon Dec 09, 2013 6:24 am


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Yahoo [Bot] and 27 guests