Pre-RFC: Allow Custom Syntax Parsing for Attribute Macro Inputs
Rust Internals [Unofficial]
April 1, 2026
We do have custom grammar inside macros, just not in attribute macros. That's because attribute macros are meant to act on Rust syntax, unlike function macros which operate on their own syntax.
What you're describing sounds like a problem completely separate from that of the OP.
Discussion in the ATmosphere