From f80bdfa89c382ccd92d2c965a35eed3877945aff Mon Sep 17 00:00:00 2001 From: qwinsi <70425035+qwinsi@users.noreply.github.com> Date: Sat, 7 Sep 2024 20:34:08 +0800 Subject: [PATCH] leave 1 todo for node.type === 'unknownMacro' --- src/writer.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/writer.ts b/src/writer.ts index 0166065..c6cb7d1 100644 --- a/src/writer.ts +++ b/src/writer.ts @@ -274,6 +274,8 @@ export class TypstWriter { this.insideFunctionDepth --; } } else if (node.type === 'unknownMacro') { + // TODO: At present, the parser does not produce nodes with type 'unknownMacro'. + // This is a placeholder for future implementation. if (this.nonStrict) { this.queue.push({ type: 'symbol', content: node.content }); } else {