From ab1d2fa17fa85fab016c08d52b6a31bce4d6d0af Mon Sep 17 00:00:00 2001 From: Jeremy Roman Date: Thu, 16 Jan 2025 10:50:47 -0500 Subject: [PATCH] Use WHATWG Infra ASCII code point definition --- spec.bs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/spec.bs b/spec.bs index ef3b36e..36769c5 100644 --- a/spec.bs +++ b/spec.bs @@ -1076,7 +1076,7 @@ A [=tokenizer=] has an associated code point, a Unicode 1. Let |error| be false. 1. While |regexp position| is less than |tokenizer|'s [=tokenizer/input=]'s [=string/code point length=]: 1. Run [=seek and get the next code point=] given |tokenizer| and |regexp position|. - 1. If the result of running [=is ASCII=] given |tokenizer|'s [=tokenizer/code point=] is false: + 1. If |tokenizer|'s [=tokenizer/code point=] is not an [=ASCII code point=]: 1. Run [=process a tokenizing error=] given |tokenizer|, |regexp start|, and |tokenizer|'s [=tokenizer/index=]. 1. Set |error| to true. 1. [=Break=]. @@ -1090,7 +1090,7 @@ A [=tokenizer=] has an associated code point, a Unicode 1. Set |error| to true. 1. [=Break=] 1. Run [=get the next code point=] given |tokenizer|. - 1. If the result of running [=is ASCII=] given |tokenizer|'s [=tokenizer/code point=] is false: + 1. If |tokenizer|'s [=tokenizer/code point=] is not an [=ASCII code point=]: 1. Run [=process a tokenizing error=] given |tokenizer|, |regexp start|, and |tokenizer|'s [=tokenizer/index=]. 1. Set |error| to true. 1. [=Break=]. @@ -1183,13 +1183,6 @@ A [=tokenizer=] has an associated code point, a Unicode 1. Otherwise return the result of checking if |code point| is contained in the [=IdentifierPart=] set of code points. -
- To determine if a Unicode |code point| is ASCII: - - 1. If |code point| is between U+0000 and U+007F inclusive, then return true. - 1. Otherwise return false. -
-

Parts

A part list is a [=list=] of zero or more [=parts=].