summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2024-08-17 22:33:25 +0100
committerubq323 <ubq323@ubq323.website>2024-08-17 22:33:29 +0100
commit91d59f1ba812c7df783e459c8af8d1c1be1d27f4 (patch)
tree9460dde9ce3ee8f600cee2cbb3a935dfe20b0f95
parent494aa09abf2a27ba8138f17c3dad94774153f0b5 (diff)
add \e for escape
-rw-r--r--read.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/read.c b/read.c
index 26dcfd5..11f523c 100644
--- a/read.c
+++ b/read.c
@@ -106,6 +106,7 @@ static Val string(Reader *R) {
case '\\': append('\\'); break;
case 't': append('\t'); break;
case 'n': append('\n'); break;
+ case 'e': append('\x1b'); break;
case '"': append('"'); break;
}
next(R);