Skip to content

Commit 3adfcca

Browse files
authored
Add explicit definition for BlockString (#1042)
1 parent 6b7c2c4 commit 3adfcca

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

spec/Appendix B -- Grammar Summary.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ StringValue ::
100100

101101
- `""` [lookahead != `"`]
102102
- `"` StringCharacter+ `"`
103-
- `"""` BlockStringCharacter\* `"""`
103+
- BlockString
104104

105105
StringCharacter ::
106106

@@ -121,6 +121,8 @@ HexDigit :: one of
121121

122122
EscapedCharacter :: one of `"` `\` `/` `b` `f` `n` `r` `t`
123123

124+
BlockString :: `"""` BlockStringCharacter\* `"""`
125+
124126
BlockStringCharacter ::
125127

126128
- SourceCharacter but not `"""` or `\"""`

spec/Section 2 -- Language.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ StringValue ::
806806

807807
- `""` [lookahead != `"`]
808808
- `"` StringCharacter+ `"`
809-
- `"""` BlockStringCharacter\* `"""`
809+
- BlockString
810810

811811
StringCharacter ::
812812

@@ -827,6 +827,8 @@ HexDigit :: one of
827827

828828
EscapedCharacter :: one of `"` `\` `/` `b` `f` `n` `r` `t`
829829

830+
BlockString :: `"""` BlockStringCharacter\* `"""`
831+
830832
BlockStringCharacter ::
831833

832834
- SourceCharacter but not `"""` or `\"""`
@@ -1007,7 +1009,11 @@ StringCharacter :: `\` EscapedCharacter
10071009
| {`r`} | U+000D | carriage return |
10081010
| {`t`} | U+0009 | horizontal tab |
10091011

1010-
StringValue :: `"""` BlockStringCharacter\* `"""`
1012+
StringValue :: BlockString
1013+
1014+
- Return the _Unicode text_ by evaluating the {BlockString}.
1015+
1016+
BlockString :: `"""` BlockStringCharacter\* `"""`
10111017

10121018
- Let {rawValue} be the _Unicode text_ by concatenating the evaluation of all
10131019
{BlockStringCharacter} (which may be an empty sequence).

0 commit comments

Comments
 (0)