bat
bat copied to clipboard
Syntax Request: Astro
Syntax:
It would be cool to have syntax highlighting support for Astro. It is a popular modern framework for frontend development:
https://github.com/withastro/astro
File extensions:
.astro
Guideline Criteria:
https://packagecontrol.io/packages/Astro
This project uses the syntect library for syntax highlighting. It's probably best to open an issue there instead.
This project uses the syntect library for syntax highlighting. It's probably best to open an issue there instead.
No, it is correct to open syntax requests here. See https://github.com/trishume/syntect/issues/523#issuecomment-1989323162
The Astro syntax definition is using features which syntect doesn't support yet, we'll need to wait for https://github.com/trishume/syntect/pull/536 to be merged first.
Temp Fix here, put this in your ~/.config/bat/config:
--map-syntax "*.astro:TypeScriptReact"
This covers the majority of my cases html, javascript, JSX etc..