Found source of bug: \w+ only recognizes alphanumeric values, ergo a category like c++ throws an error.