Discussion: Adding grammar information to Procedural Macros for proper custom syntax support in the toolchain
Greetings from 2026. Happy April Fool's day.
I wrote my wish for a compatible DSL inside the wrong forum space. Sorry for that.
This time, I'm going to ask directly, prior to writing my wishes in detail.
""" Is there any opportunity to extend Rust's own language server automatically, when defining an own DSL (based on / slightly altered from Rust) available through procedural macros at compile time? """
Currently, it doesn't seem so, and I feel forced to implement an own LSP-Server, in order to highlight code inside the IDE. Search engine results weren't satisfactory; the only crate I found was "syn_grammar"...
Maybe there's a modern way around it, while I just don't know about it.
May you give insight into the current state of things, please? Is there any solution to simplify the process (I'm really sure there must exist one).
Thanks in advance. Have a nice day.
Discussion in the ATmosphere