semantic: Move colon attribute handling to semantic.

They couldn't be applied in the parser without additional context.