From 0d77ad41b330fc1b7695c52ebc1dee4aab60d4e9 Mon Sep 17 00:00:00 2001 From: Jeremy Roman Date: Wed, 8 Jan 2025 16:39:02 -0500 Subject: [PATCH 1/2] Editorial: Correct a "set" to "let" This use introduces the variable, so it must be "set" (and grammatically it didn't make sense before, so this is merely a typo). --- spec.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.bs b/spec.bs index ed5e405..06fa366 100644 --- a/spec.bs +++ b/spec.bs @@ -1324,7 +1324,7 @@ To parse a pattern string given a [=/pattern string=] |input|, [=/opt 1. If |open token| is not null: - 1. Set |prefix| be the result of running [=consume text=] given |parser|. + 1. Let |prefix| be the result of running [=consume text=] given |parser|. 1. Set |name token| to the result of running [=try to consume a token=] given |parser| and "`name`". 1. Set |regexp or wildcard token| to the result of running [=try to consume a regexp or wildcard token=] given |parser| and |name token|. 1. Let |suffix| be the result of running [=consume text=] given |parser|. From 06d924d626f89ffa3aee7792bb6ed96d0500f590 Mon Sep 17 00:00:00 2001 From: Jeremy Roman Date: Thu, 9 Jan 2025 10:40:32 -0500 Subject: [PATCH 2/2] and one more --- spec.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.bs b/spec.bs index 06fa366..b75e95d 100644 --- a/spec.bs +++ b/spec.bs @@ -1329,7 +1329,7 @@ To parse a pattern string given a [=/pattern string=] |input|, [=/opt 1. Set |regexp or wildcard token| to the result of running [=try to consume a regexp or wildcard token=] given |parser| and |name token|. 1. Let |suffix| be the result of running [=consume text=] given |parser|. 1. Run [=consume a required token=] given |parser| and "`close`". - 1. Set |modifier token| to the result of running [=try to consume a modifier token=] given |parser|. + 1. Let |modifier token| be the result of running [=try to consume a modifier token=] given |parser|. 1. Run [=add a part=] given |parser|, |prefix|, |name token|, |regexp or wildcard token|, |suffix|, and |modifier token|. 1. [=Continue=]. 1. Run [=maybe add a part from the pending fixed value=] given |parser|.