ptal / oak

A typed parser generator embedded in Rust code for Parsing Expression Grammars
Apache License 2.0
142 stars 14 forks source link

Allow attributes on Rust items #45

Closed ptal closed 9 years ago

ptal commented 9 years ago

Due to the way the parsing is done in libsyntax, we can't allow attributes on Rust items. This is because in parse_macro_use_or_failure, they ensure a Rust attribute is always followed by a Rust item.