Make multi-line-string-body non-greedy

This commit is contained in:
Brandon Chinn 2026-01-27 16:43:50 -08:00 committed by GitHub
parent 3b75764880
commit 907e5fc608
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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