When global is set, only create highlights for the different types