18
votes

On 13th September Sublime released the first non beta version of Sublime Text 3. I just did the upgrade and now I have issues with the "improved syntax highlighting" when I use Ruby.

def foo
    @bar / @baz
end

So if I want to divide instance variables the syntax highlighting breaks. Does anybody know how to fix this?

Thank you

UPDATE:

This pull request fixed the issue. Clone the repo and move /Packages/Ruby to ~/Library/Application Support/Sublime Text 3/Packages/

After restarting Sublime the syntax issue is fixed!

2
search for a ruby package in Package Control. - mrid
this bug is being tracked at github.com/sublimehq/Packages/issues/1136 - Keith Hall
@KeithHall thank you! There is already a pull request that will fix the problem. - Sepp
This was merged... - Abram

2 Answers

7
votes

Try installing a Better Ruby. It Solved the problem for me.

0
votes

For Ubuntu 17.10 users: Clone the repo using the instructions in the readme for Sublime (as Sepp stated), then just restart Sublime.