We got this report on the R7RS issue tracker:
<
https://codeberg.org/scheme/r7rs/issues/230>
Reproducing the content here for completeness:
> 👋 I think there might be a (rather minor) inconsistency in the grammar of R7RS-small, regarding escaped identifiers (`|foo bar|`). In "2.1 Identifiers", it says (emphasis mine):
>
>> Any character, including whitespace characters, but excluding the backslash and vertical line characters, can appear verbatim in such an identifier. In addition, characters can be specified using either an 〈inline hex escape〉 or _the same escapes available in strings_.
>
> But later in the grammar:
>
> ```
> 〈string〉 −→ " 〈string element〉* "
> 〈string element〉 −→ 〈any character other than " or \〉
> | 〈mnemonic escape〉 | \" | \\ | \|
> | \〈intraline whitespace〉*〈line ending〉
> 〈intraline whitespace〉*
> | 〈inline hex escape〉
>
>
> 〈identifier〉 −→ 〈initial〉 〈subsequent〉*
> | 〈vertical line〉 〈symbol element〉* 〈vertical line〉
> | 〈peculiar identifier〉
>
> 〈symbol element〉 −→
> 〈any character other than 〈vertical line〉 or \〉
> | 〈inline hex escape〉 | 〈mnemonic escape〉 | \|
> ```
>
> So the escapes `\\` and `\"` are missing from the `symbol element` non-terminal (though maybe only the former provides any value).
(I haven’t reviewed this yet, I’m just forwarding it on.)
Daphne