From 1cf1fd05977731d299ccf5fc82f5e9c4163fff66 Mon Sep 17 00:00:00 2001 From: Hannah Kolbeck Date: Fri, 8 Jan 2021 21:09:11 -0800 Subject: [PATCH] Correct description of the raw string format (#71) --- SPEC.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/SPEC.md b/SPEC.md index 36c75b2..01b9692 100644 --- a/SPEC.md +++ b/SPEC.md @@ -198,16 +198,17 @@ support `\`-escapes. They otherwise share the same properties as far as literal [Newline](#newline) characters go, and the requirement of UTF-8 representation. -Raw String literals are represented as `r"`, followed by zero or more `#` -characters, followed by any number of UTF-8 literals. The string is then +Raw String literals are represented as `r`, followed by zero or more `#` +characters, followed by `"`, followed by any number of UTF-8 literals. The string is then closed by a `"` followed by a _matching_ number of `#` characters. This means that the string sequence `"` or `"#` and such must not match the closing `"` -with the same or more `#` characters as the opening `r"`. +with the same or more `#` characters as the opening `r`. #### Example ```kdl -my-string r#"hello\n\r\asd"world"# +just-escapes r"\n will be literal" +quotes-and-escapes r#"hello\n\r\asd"world"# ``` ### Number