Skip to content

Commit 1c1b72e

Browse files
authored
Add rule on closing newline (#44534)
Addresses anonymous feedback. Add a rule that the final newline before the closing quote characters is ignored.
1 parent 2926f80 commit 1c1b72e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/csharp/language-reference/tokens/raw-string.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ The following rules govern the interpretation of a multi-line raw string literal
2222
- Whitespace following the opening quote on the same line is ignored.
2323
- Whitespace only lines following the opening quote are included in the string literal.
2424
- If a whitespace precedes the end delimiter on the same line, the exact number and kind of whitespace characters (e.g. spaces vs. tabs) must exist at the beginning of each content line. Specifically, a space does not match a horizontal tab, and vice versa.
25+
- The newline before the closing quotes isn't included in the literal string.
2526

2627
You may need to create a raw string literal that has three or more consecutive double-quote characters. Raw string literals can start and end with a sequence of at least three double-quote characters. When your string literal contains three consecutive double-quotes, you start and end the raw string literal with four double quote characters:
2728

0 commit comments

Comments
 (0)