Prevent accidentally consuming triple quotes in multi-line-string-body

This commit is contained in:
Brandon Chinn 2026-01-29 16:17:33 -08:00
parent c7412278b8
commit a7562ef0a3
1 changed files with 1 additions and 1 deletions

View File

@ -991,7 +991,7 @@ quoted-string :=
(multi-line-string-body newline)? (multi-line-string-body newline)?
(unicode-space | ws-escape)* '"""' (unicode-space | ws-escape)* '"""'
single-line-string-body := (string-character - newline)* single-line-string-body := (string-character - newline)*
multi-line-string-body := ('"' | '""' | string-character)*? multi-line-string-body := ('"' ^'"' | '""' ^'"' | string-character)*?
string-character := string-character :=
'\\' (["\\bfnrts] | '\\' (["\\bfnrts] |
'u{' hex-unicode '}') | 'u{' hex-unicode '}') |