| ... | ... | @@ -566,7 +566,7 @@ test "string literals" { |
| 566 | 566 | assert(normal_bytes.len == 5); |
| 567 | 567 | assert(normal_bytes[1] == 'e'); |
| 568 | 568 | assert('e' == '\x65'); |
| 569 | | assert('\U01f4a9' == 128169); |
| 569 | assert('\u{1f4a9}' == 128169); |
| 570 | 570 | assert(mem.eql(u8, "hello", "h\x65llo")); |
| 571 | 571 | |
| 572 | 572 | // A C string literal is a null terminated pointer. |
| ... | ... | @@ -616,12 +616,8 @@ test "string literals" { |
| 616 | 616 | <td>hexadecimal 8-bit character code (2 digits)</td> |
| 617 | 617 | </tr> |
| 618 | 618 | <tr> |
| 619 | | <td><code>\uNNNN</code></td> |
| 620 | | <td>hexadecimal 16-bit Unicode character code UTF-8 encoded (4 digits)</td> |
| 621 | | </tr> |
| 622 | | <tr> |
| 623 | | <td><code>\UNNNNNN</code></td> |
| 624 | | <td>hexadecimal 24-bit Unicode character code UTF-8 encoded (6 digits)</td> |
| 619 | <td><code>\u{NNNNNN}</code></td> |
| 620 | <td>hexadecimal Unicode character code UTF-8 encoded (1 or more digits)</td> |
| 625 | 621 | </tr> |
| 626 | 622 | </table> |
| 627 | 623 | </div> |
| ... | ... | @@ -10008,8 +10004,7 @@ eof &lt;- !. |
| 10008 | 10004 | hex &lt;- [0-9a-fA-F] |
| 10009 | 10005 | char_escape |
| 10010 | 10006 | &lt;- "\\x" hex hex |
| 10011 | | / "\\u" hex hex hex hex |
| 10012 | | / "\\U" hex hex hex hex hex hex |
| 10007 | / "\\u{" hex+ "}" |
| 10013 | 10008 | / "\\" [nr\\t'"] |
| 10014 | 10009 | char_char |
| 10015 | 10010 | &lt;- char_escape |