Skip to content

Commit

Permalink
Exclude surrogate codepoints
Browse files Browse the repository at this point in the history
  • Loading branch information
afs committed Feb 8, 2025
1 parent 04fb921 commit 03e2e07
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions spec/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1174,9 +1174,11 @@ <h2>Turtle Grammar</h2>

<p>A <a>Turtle document</a> is an <a data-cite="RDF12-CONCEPTS#dfn-rdf-string">RDF string</a>
encoded in UTF-8 [[!RFC3629]].
Only <a data-cite="I18N-GLOSSARY#dfn-code-point">Unicode code points</a>
in the range <code class="codepoint">U+0000</code> to <code class="codepoint">U+10FFFF</code>
inclusive are allowed.
Only <a data-cite="I18N-GLOSSARY#dfn-scalar-value" class="lint-ignore">Unicode scalar values</a>,
in the range <code class="codepoint">U+0000</code> to <code class="codepoint">U+D7FF</code>
and <code class="codepoint">U+E000</code> to <code class="codepoint">U+10FFFF</code> inclusive,
are allowed.
This excludes <a data-cite="I18N-GLOSSARY#dfn-surrogate" class="lint-ignore">surrogate code points</a>.
</p>

<section id="sec-grammar-ws">
Expand Down Expand Up @@ -1278,6 +1280,11 @@ <h3>Escape Sequences</h3>
<a href="#grammar-production-HEX"><code>HEX</code></a>
::= [0-9] | [A-F] | [a-f]</span></p>
</blockquote>
<p>
Unicode <a data-cite="I18N-GLOSSARY#dfn-surrogate" class="lint-ignore">surrogate code points</a>,
the range <code class="codepoint">U+D800</code> to <code class="codepoint">U+DFFF</code>
are excluded.
</p>
</li>
<li>
<p>
Expand Down

0 comments on commit 03e2e07

Please sign in to comment.