support enum name:type syntax