The following breaks Ruby syntax highlighting:
foo(/=/)
bar()
In trying to fix this myself I came upon a bug report for the same issue in Textmate (github.com/textmate/ruby.tmbundle/pull/14). The maintainer apparently fixed the issue by replacing the operator.assignment.augmented.ruby section of the Ruby tmLanguage file. The original entry was:
comment Needs higher precidence than regular expressions. match /= name keyword.operator.assignment.augmented.rubyand replaced it with
comment Needs higher precidence than regular expressions. match (?<!\()/= name keyword.operator.assignment.augmented.rubyI am not 100% clear what the intent of this entry is for. In particular, I am not clear on what “Needs higher precidence than regular expressions.” means. However, the patch does seem to fix the original issue.