Parser gains Comment(string) AST variant and ~comments:true mode that captures top-level ;; lines instead of discarding them. All MCP edit tools (replace_node, insert_child, delete_node, wrap_node, rename_symbol, replace_by_pattern, insert_near, rename_across, pretty_print, write_file) now preserve comments: separate before tree-tools operate (so index paths stay correct), re-interleave after editing, emit in pretty_print_file. Default parse path (evaluator, runtime, compiler) is unchanged — comments are still stripped unless explicitly requested. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
8.1 KiB
8.1 KiB