Skip to content

Commit c6eb911

Browse files
andimarekleebyron
andauthored
make clear that some String escape sequences are optional (#686)
* 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>
1 parent 044d1d4 commit c6eb911

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spec/Section 2 -- Language.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -825,9 +825,10 @@ be interpreted as the beginning of a block string. As an example, the source
825825
{`""""""`} can only be interpreted as a single empty block string and not three
826826
empty strings.
827827

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

832833
**Block Strings**
833834

0 commit comments

Comments
 (0)