lambda-fairy / maud

:pencil: Compile-time HTML templates for Rust
https://maud.lambda.xyz
Apache License 2.0
1.98k stars 132 forks source link

Syntax hlighting & formatting in editors? #422

Open futile opened 4 months ago

futile commented 4 months ago

Hi!

More a question, but does anybody have syntax highlighting and/or formatting for html! {}-blocks inside a Rust-file configured?

Using neovim, but any pointers would be cool! :)

futile commented 4 months ago

Update: It looks like my editor is actually capable of rendering it somewhat correctly.

Here is a screenshot of what it looks like right now:

image

Before, when I created the issue, all the text in the html!-tag was just red, which really did not work well. Now there are still some issues, but at least basic highlighting seems to "just work"?

Edit: This is what "all red" looks like, guess my editor is not deterministic :(

image

Ah, it seems to be specifically treesitter in my case. If I disable it, I get mostly the syntax highlighting from the first image.