From 655547cb07c6f7af62f379ea67182b755f74403d Mon Sep 17 00:00:00 2001 From: Lars Willighagen Date: Tue, 29 Dec 2020 00:23:32 +0100 Subject: [PATCH] Fill in string escapes table --- SPEC.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/SPEC.md b/SPEC.md index 46c510d..36c75b2 100644 --- a/SPEC.md +++ b/SPEC.md @@ -180,16 +180,16 @@ In addition to literal code points, a number of "escapes" are supported. "Escapes" are the character `\` followed by another character, and are interpreted as described in the following table: -| Name | Escape | Code Pt | -|------|--------|---------| -| TODO | `\n` | TODO | -| TODO | `\r` | TODO | -| TODO | `\t` | TODO | -| TODO | `\\` | TODO | -| TODO | `\"` | TODO | -| TODO | `\b` | TODO | -| TODO | `\f` | TODO | -| TODO | `\u{(0-6 hex chars)}` | Code point described by hex characters, up to `10FFF` | +| Name | Escape | Code Pt | +|-------------------------------|--------|----------| +| Line Feed | `\n` | `U+000A` | +| Carriage Return | `\r` | `U+000D` | +| Character Tabulation (Tab) | `\t` | `U+0009` | +| Reverse Solidus (Backslash) | `\\` | `U+005C` | +| Quotation Mark (Double Quote) | `\"` | `U+0022` | +| Backspace | `\b` | `U+0008` | +| Form Feed | `\f` | `U+000C` | +| Unicode Escape | `\u{(0-6 hex chars)}` | Code point described by hex characters, up to `10FFF` | ### Raw String