You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Closes#1293.
## Summary
Adds a Chroma lexer for Astro components.
The lexer supports:
- `.astro` filename matching and the `astro` alias
- TypeScript frontmatter fences, including CRLF line endings
- Astro template expressions such as `{title}` and dynamic attributes
- Common Astro attribute/directive forms such as shorthand props,
`class:list`, `client:load`, and `set:html`
- Embedded `<script>` blocks, including JSON, explicit JavaScript,
explicit TypeScript, and default TypeScript
- Embedded `<style>` blocks for CSS, SCSS, Sass, and Stylus
Also adds lexer fixture coverage and updates the supported language
list.
## Tests
- [x] `go test ./lexers`
- [x] `go test ./...`
---------
Co-authored-by: Alec Thomas <alec@swapoff.org>
0 commit comments