With last line commented out SomeStructPtr is colored correctly as type, with last line commented in SomeStructPtr is colored as variable which is obviously wrong:)
Furthermore some enums of d3d9 are colored as variables, e.g. D3DMULTISAMPLE_XXX. If you use D3DMULTISAMPLE_TYPE::D3DMULTISAMPLE_XXX it's colored correctly though.