Skip to content

Commit

Permalink
Add shorthand for escape character (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisduerr authored Mar 6, 2022
1 parent b140632 commit e56ab35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,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 @@ -77,6 +77,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 @@ -278,6 +278,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

0 comments on commit e56ab35

Please sign in to comment.