From 56f399bf71f1cdc1c87611dab2dff6a4d604464b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Thu, 14 Dec 2023 19:25:12 -0800 Subject: [PATCH] Add \s to the list of escapes --- CHANGELOG.md | 2 ++ SPEC.md | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07f7256..8ef579f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ ### Grammar * Solidus/Forward slash (`/`) is no longer an escaped character. +* Space (`U+0020`) can now be written into quoted strings with the `\s` + escape. * Single line comments (`//`) can now be immediately followed by a newline. * All literal whitespace following a `\` in a string is now discarded. * Vertical tabs (`U+000B`) are now considered to be whitespace. diff --git a/SPEC.md b/SPEC.md index c460448..dc8055e 100644 --- a/SPEC.md +++ b/SPEC.md @@ -381,6 +381,7 @@ interpreted as described in the following table: | Quotation Mark (Double Quote) | `\"` | `U+0022` | | Backspace | `\b` | `U+0008` | | Form Feed | `\f` | `U+000C` | +| Space | `\s` | `U+0020` | | Unicode Escape | `\u{(1-6 hex chars)}` | Code point described by hex characters, as long as it represents a [Unicode Scalar Value](https://unicode.org/glossary/#unicode_scalar_value) | | Whitespace Escape | See below | N/A |