At a glance
- Identifier: #849
- Stage: RFC 3 / Accepted
- Champion: @leebyron
- Latest activity: 1 commit pushed on 2022-06-02
- Spec PR: https://github.com/graphql/graphql-spec/pull/849
Spec PR description
This spec text implements #687 (full context and details there) and also introduces a new escape sequence.
Three distinct changes:
- Change SourceCharacter to allow points above 0xFFFF, now to 0x10FFFF.
- Allow surrogate pairs within StringValue. This handles illegal pairs with a parse error.
- Introduce new syntax for full range code point EscapedUnicode. This syntax (
\u{1F37A}) has been adopted by many other languages and I propose GraphQL adopt it as well.
(As a bonus, this removes the last instance of a regex in the lexer grammar!)
Reference implementation https://github.com/graphql/graphql-js/pull/3117
Closes #687 Closes #214
Timeline
- Commit pushed on 2022-06-02 by leebyron: Editorial
- Added to WG agenda on 2021-07-01
- Mentioned in WG notes on 2021-07-01
- Added to WG agenda on 2021-06-03
- Mentioned in WG notes on 2021-06-03
- Commit pushed on 2021-05-18 by leebyron: Revised RFC after feedback
- Added to WG agenda on 2021-05-13
- Mentioned in WG notes on 2021-05-13
- Spec PR created on 2021-04-13 by leebyron
- Commit pushed on 2021-04-13 by leebyron: RFC: Allow full unicode range