Skip to content

Commit 75eed47

Browse files
maustinstarxwu
andauthored
Note for zero-width chars in multiline delimiter
Co-authored-by: Xiaodi Wu <[email protected]>
1 parent d6d01aa commit 75eed47

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/Parse/raw_string.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ _ = ##"""
7272

7373
/// Source code contains zero-width character in this format: `#"[U+200B]"[U+200B]"#`
7474
/// The check contains zero-width character in this format: `"[U+200B]\"[U+200B]"`
75-
/// Use this test when implementating `diagnoseZeroWidthMatchAndAdvance`.
75+
/// If this check fails after you implement `diagnoseZeroWidthMatchAndAdvance`,
76+
/// then you may need to tweak how to test for single-line string literals that
77+
/// resemble a multiline delimiter in `advanceIfMultilineDelimiter` so that it
78+
/// passes again.
7679
/// See https://bugs.swift.org/browse/SR-8678
7780
_ = #"​"​"#
7881
// CHECK: "​\"​"

0 commit comments

Comments
 (0)