mirror of https://github.com/kdl-org/kdl.git
Add \s to the list of escapes
This commit is contained in:
parent
9f061537c9
commit
56f399bf71
|
|
@ -5,6 +5,8 @@
|
||||||
### Grammar
|
### Grammar
|
||||||
|
|
||||||
* Solidus/Forward slash (`/`) is no longer an escaped character.
|
* 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.
|
* Single line comments (`//`) can now be immediately followed by a newline.
|
||||||
* All literal whitespace following a `\` in a string is now discarded.
|
* All literal whitespace following a `\` in a string is now discarded.
|
||||||
* Vertical tabs (`U+000B`) are now considered to be whitespace.
|
* Vertical tabs (`U+000B`) are now considered to be whitespace.
|
||||||
|
|
|
||||||
1
SPEC.md
1
SPEC.md
|
|
@ -381,6 +381,7 @@ interpreted as described in the following table:
|
||||||
| Quotation Mark (Double Quote) | `\"` | `U+0022` |
|
| Quotation Mark (Double Quote) | `\"` | `U+0022` |
|
||||||
| Backspace | `\b` | `U+0008` |
|
| Backspace | `\b` | `U+0008` |
|
||||||
| Form Feed | `\f` | `U+000C` |
|
| 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) |
|
| 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 |
|
| Whitespace Escape | See below | N/A |
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue