{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreihaywa42swbsrrqlroijekeyioahqaja3spht6cgx23cv2co77ira",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3migjjfonnih2"
  },
  "path": "/t/discussion-adding-grammar-information-to-procedural-macros-for-proper-custom-syntax-support-in-the-toolchain/21496?page=3#post_59",
  "publishedAt": "2026-04-01T06:24:38.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "Greetings from 2026. Happy April Fool's day.\n\nI wrote my wish for a compatible DSL inside the wrong forum space. Sorry for that.\n\nThis time, I'm going to ask directly, prior to writing my wishes in detail.\n\n\"\"\" 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? \"\"\"\n\nCurrently, 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\"...\n\nMaybe there's a modern way around it, while I just don't know about it.\n\nMay 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).\n\nThanks in advance. Have a nice day.",
  "title": "Discussion: Adding grammar information to Procedural Macros for proper custom syntax support in the toolchain"
}