Show Ticket

Status: closed, reported by james on 2009-01-02 (other)

Ruby syntax highlighting problem with forward slash and equals

The following Ruby code is not correctly syntax highlighted. It seems like the /= is confusing things...

def matches(index, base)
  counts = [0] * base
  4.times do
    counts[index % base] += 1
    index /= base
  end
  count = 0
  4.times do
    count += counts[index % base]
    index /= base
  end
  count
end

Cheers, James.
Note added by Allan Odgaard on 2009-01-02 16:19:42

http://lists.macromates.com/textmate-dev/2009-January/013343.html

File added by james on 2009-01-02 11:09:23

textmate-ruby-syntax-highlighting-bug.jpg (15652 bytes)