The percent (%) operator in C and C++ is the modulus operator. It returns the first number mod the second number. Source But why it's highlights in strings, Idk, probably it's a bug.
It's highlighting the % because it's assuming that you're making a printf format string, and that you've made it wrong. Unfortunately there's no way to tell it it's not a printf format string short of changing the syntax file.