Open Jarmos-san opened 11 months ago
This is because in order to support a custom language injection, there needs to be a tree-sitter parser for that language. There already exists a tree-sitter parser for SCSS, which is why SCSS is already supported, but there aren't any tree-sitter parsers for SASS, Less, or Stylus.
If you are willing to write a tree-sitter parser and/or one pops up, then I can add it. Otherwise, unfortunately, this will stay open.
I noticed the syntax highlighting breaks when writing SASS-based code (see screenshot for reference). I believe it might be the same for the other CSS Preprocessors like Less, Stylus and such that Astro supports.
Proper syntax highlighting for CSS code
No syntax highlighting for SASS code
Weirdly enough, the highlighting works when
lang="scss"
.