Is there a way to add new keywords to a language?

Hello!

I am trying to write a blogpost about coding in Rust. I would like to have some types highlighted like keywords. For example, I would like vec2 to have the same colour as i32.

Is there any decent way of doing that without copy-pasting the whole Rust highlighting rules?