Debian Codegraph @

testsuite/tests/lexing/uchar_esc.ocaml.reference

raw
1 Line 5, characters 18-27:
2 5 | let invalid_sv = "\u{0D800}" ;;
3 ^^^^^^^^^
4 Error: Illegal backslash escape in string or character (\u{0D800}): D800 is not a Unicode scalar value
5 Line 1, characters 18-26:
6 1 | let invalid_sv = "\u{D800}" ;;
7 ^^^^^^^^
8 Error: Illegal backslash escape in string or character (\u{D800}): D800 is not a Unicode scalar value
9 Line 1, characters 18-26:
10 1 | let invalid_sv = "\u{D900}" ;;
11 ^^^^^^^^
12 Error: Illegal backslash escape in string or character (\u{D900}): D900 is not a Unicode scalar value
13 Line 1, characters 18-26:
14 1 | let invalid_sv = "\u{DFFF}" ;;
15 ^^^^^^^^
16 Error: Illegal backslash escape in string or character (\u{DFFF}): DFFF is not a Unicode scalar value
17 Line 1, characters 18-28:
18 1 | let invalid_sv = "\u{110000} ;;
19 ^^^^^^^^^^
20 Error: Illegal backslash escape in string or character (\u{110000}): 110000 is not a Unicode scalar value
21 Line 2, characters 23-35:
22 2 | let too_many_digits = "\u{01234567}" ;;
23 ^^^^^^^^^^^^
24 Error: Illegal backslash escape in string or character (\u{01234567}): too many digits, expected 1 to 6 hexadecimal digits
25 Line 1, characters 21-23:
26 1 | let no_hex_digits = "\u{}" ;;
27 ^^
28 Warning 14 [illegal-backslash]: illegal backslash escape in string.
29 Hint: Single backslashes \ are reserved for escape sequences (\n, \r, ...).
30 Did you check the list of OCaml escape sequences?
31 To get a backslash character, escape it with a second backslash: \\.
32
33 val no_hex_digits : string = "\\u{}"
34 Line 1, characters 25-27:
35 1 | let illegal_hex_digit = "\u{u}" ;;
36 ^^
37 Warning 14 [illegal-backslash]: illegal backslash escape in string.
38 Hint: Single backslashes \ are reserved for escape sequences (\n, \r, ...).
39 Did you check the list of OCaml escape sequences?
40 To get a backslash character, escape it with a second backslash: \\.
41
42 val illegal_hex_digit : string = "\\u{u}"
43