Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sublime Text 3: Ruby syntax highlighting bug

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!

like image 989
Sepp Avatar asked Sep 14 '17 10:09

Sepp


People also ask

How do I disable syntax highlighting in Sublime Text 3?

For example, if you save a document with the file extension “. py” for Python documents, then Sublime Text 3 will automatically enable the Python Syntax Highlighting. Tip: To disable Syntax Highlighting, select “Plaintext” from the supported language list.

Does Sublime Text support syntax highlighting?

Sublime Text can use both . sublime-syntax and . tmLanguage files for syntax highlighting.


1 Answers

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

like image 98
Frank Etoundi Avatar answered Sep 28 '22 09:09

Frank Etoundi