Closed mjholub closed 8 months ago
Hi! What would you like the comments to look like? The treesitter parser for Svelte tags those comments as @comment.javascript
, so it'll be using the @comment
styles
yeah same as in js is fine
That's what I'm saying: it's already the same as JS as far as I can tell. Does this same snippet look different if you put it in a JS file (e.g. foo.js
)? (Or TS?)
see here
code inside <script>
should be highlighted the same or similar way as it is on the right
OK I tried with other colorschemes and the issue persists. Using :set ft=html
seems to mostly resolve the issue. I'll open an issue at tree-sitter-svelte.
I really like that this colorscheme is capable of highlighting
<style>
blocks in Svelte, but in<script>
section, comments or literals are not handled too well. See screenshot.