Support [] interpolation in new parser

This commit is contained in:
Tangent Wantwight 2024-06-05 20:02:47 -04:00
parent 63d6fa836a
commit ab91d71170

View file

@ -147,6 +147,14 @@ class Parser {
wip.addWordPiece({ bare: chars }, pos);
break;
case "[": {
this.advance();
const script = this.parseScript();
wip.addWordPiece({ script });
this.expect("]");
break;
}
case "whitespace":
wip.finishWord();
break;
@ -162,7 +170,6 @@ class Parser {
case "{":
case "}":
case "[":
case "quote":
case "backslash":
case "comment":