Skip to content

Commit

Permalink
make clear that some String escape sequences are optional (#686)
Browse files Browse the repository at this point in the history
* make clear the escaping is optional

* clarify that it is about standard quoted strings

* Clarify some language and that this is normative

Co-authored-by: Lee Byron <lee@leebyron.com>
  • Loading branch information
andimarek and leebyron committed Apr 12, 2021
1 parent 044d1d4 commit c6eb911
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/Section 2 -- Language.md
Original file line number Diff line number Diff line change
Expand Up @@ -825,9 +825,10 @@ be interpreted as the beginning of a block string. As an example, the source
{`""""""`} can only be interpreted as a single empty block string and not three
empty strings.

Note: Unicode characters are allowed within String value literals, however
{SourceCharacter} must not contain some ASCII control characters so escape
sequences must be used to represent these characters.
Non-ASCII Unicode characters are allowed within single-quoted strings.
Since {SourceCharacter} must not contain some ASCII control characters, escape
sequences must be used to represent these characters. The {`\`}, {`"`}
characters also must be escaped. All other escape sequences are optional.

**Block Strings**

Expand Down

0 comments on commit c6eb911

Please sign in to comment.