We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d3797e commit e8637a4Copy full SHA for e8637a4
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/PythonTreeTranslator.java
@@ -730,6 +730,15 @@ private static String unescapeJavaString(String st) {
730
sb.append(Character.toChars(code));
731
i += 5;
732
continue;
733
+ case 'x':
734
+ if (i >= st.length() - 3) {
735
+ ch = 'u';
736
+ break;
737
+ }
738
+ int hexCode = Integer.parseInt("" + st.charAt(i + 2) + st.charAt(i + 3), 16);
739
+ sb.append(Character.toChars(hexCode));
740
+ i += 3;
741
+ continue;
742
}
743
i++;
744
0 commit comments