Handle backslashes in brace words correctly

This commit is contained in:
Tangent Wantwight 2024-06-07 22:21:04 -04:00
parent c61496fcc3
commit b2c5f7ea90

View file

@ -208,6 +208,11 @@ class Parser {
while (true) { while (true) {
const [type, chars, pos] = this.next; const [type, chars, pos] = this.next;
switch (type) { switch (type) {
case "backslash":
wip += "\\";
this.advance();
wip += this.next[1];
break;
case "{": { case "{": {
wip += "{"; wip += "{";
this.advance(); this.advance();