Skip to content

Commit abfb2a7

Browse files
committed
Add explicit definition for BlockString
1 parent 6b7c2c4 commit abfb2a7

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

spec/Appendix B -- Grammar Summary.md

Lines changed: 3 additions & 1 deletion
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

Lines changed: 6 additions & 2 deletions
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,9 @@ StringCharacter :: `\` EscapedCharacter
10071009
| {`r`} | U+000D | carriage return |
10081010
| {`t`} | U+0009 | horizontal tab |
10091011

1010-
StringValue :: `"""` BlockStringCharacter\* `"""`
1012+
StringValue :: BlockString
1013+
1014+
BlockString :: `"""` BlockStringCharacter\* `"""`
10111015

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

0 commit comments

Comments
 (0)