bat icon indicating copy to clipboard operation
bat copied to clipboard

Syntax Request: Astro

Open azat-io opened this issue 1 year ago • 4 comments

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

azat-io avatar May 22 '24 08:05 azat-io

This project uses the syntect library for syntax highlighting. It's probably best to open an issue there instead.

amogusussy avatar May 26 '24 17:05 amogusussy

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

keith-hall avatar May 26 '24 18:05 keith-hall

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.

keith-hall avatar May 26 '24 18:05 keith-hall

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..

rickswe avatar Mar 30 '25 03:03 rickswe