Skip to content

Commit

Permalink
leave 1 todo for node.type === 'unknownMacro'
Browse files Browse the repository at this point in the history
  • Loading branch information
qwinsi committed Sep 7, 2024
1 parent d14c51c commit f80bdfa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/writer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f80bdfa

Please sign in to comment.