From 3711b6a3c3c44976d5457feefd5b65a3d077a935 Mon Sep 17 00:00:00 2001 From: eilvelia Date: Fri, 20 Dec 2024 16:18:33 +0000 Subject: [PATCH] Always escape \ inside single quotes in the grammar text to match the other uses of it and the metalanguage description below --- SPEC.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SPEC.md b/SPEC.md index 0020aea..d21ae81 100644 --- a/SPEC.md +++ b/SPEC.md @@ -872,8 +872,8 @@ disallowed-keyword-identifiers := 'true' | 'false' | 'null' | 'inf' | '-inf' | ' quoted-string := '"' single-line-string-body '"' | '"""' newline multi-line-string-body newline (unicode-space | ws-escape)* '"""' single-line-string-body := (string-character - newline)* multi-line-string-body := (('"' | '""')? string-character)* -string-character := '\' (["\\bfnrts] | 'u{' hex-digit{1, 6} '}') | ws-escape | [^\\"] - disallowed-literal-code-points -ws-escape := '\' (unicode-space | newline)+ +string-character := '\\' (["\\bfnrts] | 'u{' hex-digit{1, 6} '}') | ws-escape | [^\\"] - disallowed-literal-code-points +ws-escape := '\\' (unicode-space | newline)+ hex-digit := [0-9a-fA-F] raw-string := '#' raw-string-quotes '#' | '#' raw-string '#'