lukaslueg / macro_railroad

A library to generate syntax diagrams for Rust macros.
MIT License
529 stars 11 forks source link

Lacking support for :vis and :literal #1

Closed lukaslueg closed 5 years ago

lukaslueg commented 5 years ago

This macro should compile

macro_rules! a {
(
$item:item
$block:block
$stmt:stmt
$pat:pat
$expr:expr
$ty:ty
$ident:ident
$path:path
$vis:vis
$literal:literal
$meta:meta
$lifetime:lifetime
) => {};
}

but :vis and :literal are currently not parsed.

lukaslueg commented 5 years ago

should be good now