You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/Section 2 -- Language.md
+74-17
Original file line number
Diff line number
Diff line change
@@ -715,37 +715,51 @@ Strings are sequences of characters wrapped in double-quotes (`"`). (ex.
715
715
significant within a string value.
716
716
717
717
Note: Unicode characters are allowed within String value literals, however
718
-
GraphQL source must not contain some ASCII control characters so escape
718
+
{SourceCharacter} must not contain some ASCII control characters so escape
719
719
sequences must be used to represent these characters.
720
720
721
721
**Multi-line Strings**
722
722
723
723
Multi-line strings are sequences of characters wrapped in triple-quotes (`"""`).
724
-
White space, line terminators, and quote and backslash characters may all be
725
-
used unescaped, enabling freeform text. Characters must all be valid
726
-
{SourceCharacter} to ensure printable source text. If non-printable ASCII
727
-
characters need to be used, escape sequences must be used within standard
728
-
double-quote strings.
724
+
White space, line terminators, quote, and backslash characters may all be
725
+
used unescaped to enable freeform text. Characters must all be valid
726
+
{SourceCharacter}.
729
727
730
-
**Semantics**
728
+
Since multi-line strings represent freeform text often used in indented
729
+
positions, the string value semantics of a multi-line string excludes uniform indentation and empty initial and trailing lines via {MultilineStringValue()}.
731
730
732
-
StringValue :: `"` StringCharacter*`"`
731
+
For example, the following operation containing a multi-line string:
733
732
734
-
* Return the Unicode character sequence of all {StringCharacter}
0 commit comments