We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a10c0af + c5b001d commit e3e6b9aCopy full SHA for e3e6b9a
1 file changed
src/main/java/org/perlonjava/parser/StringDoubleQuoted.java
@@ -357,6 +357,9 @@ protected void parseEscapeSequence() {
357
applyCaseModifier(caseModifiers.pop());
358
}
359
inQuotemeta = false;
360
+ } else if (token.text.startsWith("Q")) {
361
+ // In quotemeta mode, \Q is idempotent and should be ignored.
362
+ TokenUtils.consumeChar(parser);
363
} else {
364
// Everything else is literal, including the backslash
365
currentSegment.append("\\");
0 commit comments