Match projects and contexts properly when highlighting.