Skip to content

Commit a644252

Browse files
committed
Add shorthand for escape character
1 parent 7e563ee commit a644252

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/tomli/_parser.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
"\\n": "\u000A", # linefeed
4545
"\\f": "\u000C", # form feed
4646
"\\r": "\u000D", # carriage return
47+
"\\e": "\u001B", # escape
4748
'\\"': "\u0022", # quote
4849
"\\\\": "\u005C", # backslash
4950
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{"escape":
2+
{"type":"string","value":"\u001B"}}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
escape = "\e"

0 commit comments

Comments
 (0)