Hmm ...
It could make sense with following design:
#[proc_macro_parser]
pub fn javascript(item: CharStream) -> impl Iterator {
// ...
}
and then to use it like this:
#[foreign_lang(javascript, path="do_something.js")]
mod do_something;
Hmm ...
It could make sense with following design:
#[proc_macro_parser]
pub fn javascript(item: CharStream) -> impl Iterator {
// ...
}
and then to use it like this:
#[foreign_lang(javascript, path="do_something.js")]
mod do_something;