You can hack it with the \m[<color>] escape in groff:
\m[blue]int\m[] x
Of course, you would use some kind of pre-processor to
make this less of a PITA, but it's not inconceivable.