Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add shorthand for escape character #790

Merged
merged 1 commit into from
Mar 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Clarify that indentation before keys is ignored.
* Clarify that indentation before table headers is ignored.
* Clarify that indentation between array values is ignored.
* Add new `\e` shorthand for the escape character.

## 1.0.0-rc.3 / 2020-10-07

Expand Down
1 change: 1 addition & 0 deletions toml.abnf
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ escape = %x5C ; \
escape-seq-char = %x22 ; " quotation mark U+0022
escape-seq-char =/ %x5C ; \ reverse solidus U+005C
escape-seq-char =/ %x62 ; b backspace U+0008
escape-seq-char =/ %x65 ; e escape U+001B
escape-seq-char =/ %x66 ; f form feed U+000C
escape-seq-char =/ %x6E ; n line feed U+000A
escape-seq-char =/ %x72 ; r carriage return U+000D
Expand Down
1 change: 1 addition & 0 deletions toml.md
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ For convenience, some popular characters have a compact escape sequence.
\n - linefeed (U+000A)
\f - form feed (U+000C)
\r - carriage return (U+000D)
\e - escape (U+001B)
\" - quote (U+0022)
\\ - backslash (U+005C)
\uXXXX - unicode (U+XXXX)
Expand Down