Skip to content

Commit 5937c74

Browse files
Prevent accidentally consuming triple quotes in multi-line-string-body
1 parent c741227 commit 5937c74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

draft-marchan-kdl2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ quoted-string :=
991991
(multi-line-string-body newline)?
992992
(unicode-space | ws-escape)* '"""'
993993
single-line-string-body := (string-character - newline)*
994-
multi-line-string-body := ('"' | '""' | string-character)*?
994+
multi-line-string-body := (^'"""' ('"' | '""' | string-character))*?
995995
string-character :=
996996
'\\' (["\\bfnrts] |
997997
'u{' hex-unicode '}') |

0 commit comments

Comments
 (0)