Repository navigation
feat: add Astro syntax highlighting support - #190
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
📝 WalkthroughWalkthroughAdded Astro syntax highlighting support by integrating the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
README.md (1)
67-183:⚠️ Potential issue | 🟡 MinorUpdate the supported language count.
Adding Astro brings the list to 30 languages, but Line 67 still says 29.
📝 Proposed fix
-🎨 **Tree-sitter Syntax Highlighting** — 29 languages supported +🎨 **Tree-sitter Syntax Highlighting** — 30 languages supported🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@README.md` around lines 67 - 183, Update the language count in the README: change the header line "🎨 **Tree-sitter Syntax Highlighting** — 29 languages supported" to "🎨 **Tree-sitter Syntax Highlighting** — 30 languages supported" so the documented count matches the supported languages list (Astro added).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Outside diff comments:
In `@README.md`:
- Around line 67-183: Update the language count in the README: change the header
line "🎨 **Tree-sitter Syntax Highlighting** — 29 languages supported" to "🎨
**Tree-sitter Syntax Highlighting** — 30 languages supported" so the documented
count matches the supported languages list (Astro added).
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: e9071137-19d3-456b-9adc-745be5f0d6bb
⛔ Files ignored due to path filters (1)
Cargo.lockis excluded by!**/*.lock
📒 Files selected for processing (4)
Cargo.tomlREADME.mdsrc/syntax/languages/astro.rssrc/syntax/languages/mod.rs
close: #172
Summary
tree-sitter-astro-nextdependency for Astro language parsingastro.rslanguage module with language function and highlight query.astroextension in the language mapperTest plan
cargo checkpassescargo testpassescargo clippy --all-targets -- -D warningspassescargo fmtpasses.astrofile🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
.astroextension.Documentation