Syntax coloring for literals like %w(...) or %i(...) in Ruby


#1

One of the epic nuisances of TextMate and Sublime is the inability of either of them to do syntax coloring for Ruby literals like %w(…), %i(…) etc. Here’s how the “Atom Light” theme colors them:

Or with my “Gusto” theme which uses more distinct colors:

Since symbols are such an essential entity in Ruby, specially the %i(…) coloring is not satisfactory, it simply doesn’t look like an array of symbols at first. Is there a way to improve the coloring somewhat like suggested in the comments above?


#2

You would have to add support for that in the language-ruby package.