Conversation
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- fix-file 和 fix-directory 在执行 fix 前通过 os-call 调用 gf fmt - 使用 (liii sys) 的 executable 获取当前可执行文件路径 - 拆分 fix-file-core 避免目录递归时重复调用 fmt - 将 fix 工具的输出文案由 Processing 改为 Fixing Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
将单独出现的 # 替换为 #t,因为 # 在 Scheme 中不是有效的独立 token。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gf fix在处理#(向量字面量时,因仅将(的缩进作为匹配基准,导致对齐到#的)被误判为缩进不匹配的问题。)后面带有;#注释(用于标记 vector 结束)时,原实现会删除)并在别处插入新),导致;#注释被孤立。make-open-frame-from-token,使其在遇到紧邻#前缀的(时,将#的缩进列作为匹配基准。#(与) ;#的配对不再被误判。Test plan
bin/gf test tools/fix/tests/liii/goldfix-repair/repair-parentheses-test.scm通过bin/gf test tests/liii/json/json-to-string-test.scm通过bin/gf fix --dry-run tests/liii/json/json-to-string-test.scm输出与原始文件一致🤖 Generated with Claude Code