Handle backslashes in brace words correctly
This commit is contained in:
parent
c61496fcc3
commit
b2c5f7ea90
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||||
|
|
Loading…
Reference in a new issue