feat: add .af line comments - #80
Conversation
Support single-# .af comment lines across tokenization, formatting, codegen, and LSP highlighting while preserving Markdown heading output. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (9)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 0/1 reviews remaining, refill in 30 minutes and 6 seconds.Comment |
Avoid treating existing single-# emoji Markdown headings as comments so generated example output stays stable. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Peyton-Spencer
left a comment
There was a problem hiding this comment.
Reviewed the tokenizer, coarse-token conversion, formatter, LSP semantic token handling, and codegen golden coverage for the new single-# comment behavior.
No blocking findings. The implementation keeps comments as granular tokens for formatting/LSP, strips them before AST/codegen, and preserves the documented Markdown heading exceptions.
Verification:
go test ./...initially failed because the container could not write to the default Go module cache under/home/bun/go/pkg/mod.GOMODCACHE=/tmp/opencode/gomodcache GOPATH=/tmp/opencode/gopath go test ./...passed.
Summary
#line comment tokens for.affiles.##headings rendered as normal prompt text to avoid breaking existing templates.Tests
go test ./...Closes #79 for the comments slice of Phase 1.