by jps on Tue Oct 13, 2009 11:25 am
This is indeed a bug, I've put it on the list of things to fix.
Internally, since selectors form a regular language, sublime transforms them into regexes. To rank selectors vs. a scope, it simply takes the selector with the leftmost longest match. This is an approximation of the TextMate ranking scheme, but it doesn't always rank in the same way - I'll need to change the ranking to be done in a per-scope element iterative method.