textmate / ruby.tmbundle

TextMate support for Ruby
178 stars 91 forks source link

(low priority) Ruby syntax highlighting issue for regex literals with ! - or + operators #115

Open aeschli opened 6 years ago

aeschli commented 6 years ago

From @jeff-hykin on December 24, 2017 4:45

Steps to Reproduce:

audience = "world"
thing = ! /hello #{audience}/
puts thing 
#>>> true 

The syntax highlighting for /hello #{audience}/ is screwed up. The problem also exists if the - or + operators are used, however the ~ operator has the correct highlighting.

Solution:

This is a pretty small problem, so mentioning this in the ruby.tmLanguage.json is probably sufficient.
I'm somewhat familiar with language files so I might be able to add a fix and create a pull request in the next few weeks.

Copied from original issue: Microsoft/vscode#40769