From 910f6e90a7559113f1a96abb497965700c7fb8f1 Mon Sep 17 00:00:00 2001 From: Danielle Smith Date: Sun, 28 Aug 2022 21:59:26 +0200 Subject: [PATCH] Do not escape / (Solidus, Forwardslash) (#197) --- SPEC.md | 3 +-- tests/test_cases/input/all_escapes.kdl | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/SPEC.md b/SPEC.md index e2fd106..f625ba1 100644 --- a/SPEC.md +++ b/SPEC.md @@ -319,7 +319,6 @@ interpreted as described in the following table: | Carriage Return | `\r` | `U+000D` | | Character Tabulation (Tab) | `\t` | `U+0009` | | Reverse Solidus (Backslash) | `\\` | `U+005C` | -| Solidus (Forwardslash) | `\/` | `U+002F` | | Quotation Mark (Double Quote) | `\"` | `U+0022` | | Backspace | `\b` | `U+0008` | | Form Feed | `\f` | `U+000C` | @@ -461,7 +460,7 @@ type := '(' identifier ')' string := raw-string | escaped-string escaped-string := '"' character* '"' character := '\' escape | [^\"] -escape := ["\\/bfnrt] | 'u{' hex-digit{1, 6} '}' +escape := ["\\bfnrt] | 'u{' hex-digit{1, 6} '}' hex-digit := [0-9a-fA-F] raw-string := 'r' raw-string-hash diff --git a/tests/test_cases/input/all_escapes.kdl b/tests/test_cases/input/all_escapes.kdl index 5bb1dc3..024cda2 100644 --- a/tests/test_cases/input/all_escapes.kdl +++ b/tests/test_cases/input/all_escapes.kdl @@ -1 +1 @@ -node "\"\\\/\b\f\n\r\t" +node "\"\\\b\f\n\r\t"