From b2c5f7ea904e37e301d6be5d37eb644cc8d38f76 Mon Sep 17 00:00:00 2001 From: Tangent Wantwight Date: Fri, 7 Jun 2024 22:21:04 -0400 Subject: [PATCH] Handle backslashes in brace words correctly --- src/parser2.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/parser2.ts b/src/parser2.ts index be21529..93829cd 100644 --- a/src/parser2.ts +++ b/src/parser2.ts @@ -208,6 +208,11 @@ class Parser { while (true) { const [type, chars, pos] = this.next; switch (type) { + case "backslash": + wip += "\\"; + this.advance(); + wip += this.next[1]; + break; case "{": { wip += "{"; this.advance();