← Back to context

Comment by asimovDev

18 hours ago

This is just Twig templates, crazy. It's cool that Rust can do this out of a box

yep and you get rust's lsp support too, autoformatting, etc.

this is rsx, but there are other macros that look just like html. i prefer this though, it's much more compact and readable imo

  • I'm not a fan of Rust, the overly flexible macros are actually one reason for it, but if you can indeed get LSP support in a custom syntax like this, that's really awesome. Thank you for the example.

    • do you think that when compiler internals 'settle down' it will (gradually) be exposed through some interfaces (like compiler plugins in jai) so that we can more easily develop LSP for quasi-zig formats like this ?

      That would be great, I really like openness and ~plugin interfaces of jai compiler internals ...