Fix false positive in UnneededPercentQ for /%Q(something)/

Regular expressions starting with % or %Q were treated
as string literals starting with those delimiters.

Related to #835.
Merge pull request #1208 from jonas054/fix_unneeded_percent_q

Fix false positive in UnneededPercentQ for /%Q(something)/