Use regexp-opt for keyword and constant regexps, because it outputs
regexps that are more efficient.