Sorry I forgot one thing.
class A < B
B could have the class color too.
I think the reason for A being highlighted rather than B is that this is the definition of A and the mention of B is just a use, not a definition.
This is definitely true. As a matter of fact, a class can inherit from an object:
foo = String
class SuperString < foo
I think not a bug.