Skip to content

Commit

Permalink
[spec] fix comparison to grammar productions
Browse files Browse the repository at this point in the history
See #60
  • Loading branch information
ljharb committed Oct 12, 2023
1 parent 9c55324 commit cd29c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.emu
Original file line number Diff line number Diff line change
Expand Up @@ -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_).
Expand Down

0 comments on commit cd29c60

Please sign in to comment.