Does Emacs support font-lock for Ruby 2.0 percent literals?

156 views Asked by At

How can I fix ruby 2.0 symbol array syntax in Emacs?

In standard ruby-mode, it displays symbol arrays in default color. In enh-ruby-mode, a definition of symbol array breaks my color theme entirely.

1

There are 1 answers

2
rsenna On BEST ANSWER

ruby-mode is currently not capable of rendering the array syntax correctly.

If you really are concerned about that, consider using the highlight-escape-sequences package, available through MELPA.

Edit The same author (Dmitry Gutov) seems to have made a commit on ruby-mode, fixing the syntax-highlighting for array of symbols, as we can see here. But that change is not available yet, so I guess we need to wait for Emacs 24.4...