Skip to content

Commit 8bd1595

Browse files
authored
Always escape \ inside single quotes in the grammar text (#441)
to match the other uses of it and the metalanguage description below
1 parent 23918bd commit 8bd1595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SPEC.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -872,8 +872,8 @@ disallowed-keyword-identifiers := 'true' | 'false' | 'null' | 'inf' | '-inf' | '
872872
quoted-string := '"' single-line-string-body '"' | '"""' newline multi-line-string-body newline (unicode-space | ws-escape)* '"""'
873873
single-line-string-body := (string-character - newline)*
874874
multi-line-string-body := (('"' | '""')? string-character)*
875-
string-character := '\' (["\\bfnrts] | 'u{' hex-digit{1, 6} '}') | ws-escape | [^\\"] - disallowed-literal-code-points
876-
ws-escape := '\' (unicode-space | newline)+
875+
string-character := '\\' (["\\bfnrts] | 'u{' hex-digit{1, 6} '}') | ws-escape | [^\\"] - disallowed-literal-code-points
876+
ws-escape := '\\' (unicode-space | newline)+
877877
hex-digit := [0-9a-fA-F]
878878
879879
raw-string := '#' raw-string-quotes '#' | '#' raw-string '#'

0 commit comments

Comments
 (0)