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 e8637a4 commit 73a40bfCopy full SHA for 73a40bf
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/parser/PythonTreeTranslator.java
@@ -730,6 +730,17 @@ private static String unescapeJavaString(String st) {
730
sb.append(Character.toChars(code));
731
i += 5;
732
continue;
733
+ // Hex Unicode: U????????
734
+ case 'U':
735
+ if (i >= st.length() - 9) {
736
+ ch = 'U';
737
+ break;
738
+ }
739
+ code = Integer.parseInt(st.substring(i + 2, i + 10), 16);
740
+ sb.append(Character.toChars(code));
741
+ i += 9;
742
+ continue;
743
+ // Hex Unicode: x??
744
case 'x':
745
if (i >= st.length() - 3) {
746
ch = 'u';
0 commit comments