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();