From cd29c60c18cc1cc7cab798970e485cf452d83c6d Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 11 Oct 2023 23:24:55 -0700 Subject: [PATCH] [spec] fix comparison to grammar productions See #60 --- spec.emu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.emu b/spec.emu index 30e8812..a7298cd 100644 --- a/spec.emu +++ b/spec.emu @@ -54,11 +54,11 @@ contributors: Jordan Harband 1. Let _toEscape_ be a CharSet containing every character in the ASCII punctuators that need escaping. 1. Let _escapedList_ be a new empty List. 1. For each code point _c_ in _cpList_, do - 1. If _escapedList_ is empty and _c_ is a |DecimalDigit|, then + 1. If _escapedList_ is empty and _c_ is matched by |DecimalDigit|, then 1. Append code unit U+005C (REVERSE SOLIDUS) to _escapedList_. 1. Append code unit U+0078 (LATIN SMALL LETTER X) to _escapedList_. 1. Append code unit U+0033 (DIGIT THREE) to _escapedList_. - 1. Else if _c_ is a CharSetElement of _toEscape_ or is |WhiteSpace|, then + 1. Else if _c_ is a CharSetElement of _toEscape_ or is matched by |WhiteSpace|, then 1. Append code unit U+005C (REVERSE SOLIDUS) to _escapedList_. 1. Append the elements of UTF16EncodeCodePoint(_c_) to _escapedList_. 1. Return CodePointsToString(_escapedList_).