Skip to content

Commit 762ba97

Browse files
committed
Document more parse_quote special cases
1 parent 1c739cb commit 762ba97

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/parse_quote.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,22 @@
5353
///
5454
/// - [`Attribute`] — parses one attribute, allowing either outer like `#[...]`
5555
/// or inner like `#![...]`
56+
/// - [`Vec<Attribute>`] — parses multiple attributes, including mixed kinds in
57+
/// any order
5658
/// - [`Punctuated<T, P>`] — parses zero or more `T` separated by punctuation
5759
/// `P` with optional trailing punctuation
60+
/// - [`Vec<Arm>`] — parses arms separated by optional commas according to the
61+
/// same grammar as the inside of a `match` expression
5862
/// - [`Vec<Stmt>`] — parses the same as `Block::parse_within`
63+
/// - [`Pat`], [`Box<Pat>`] — parses the same as
64+
/// `Pat::parse_multi_with_leading_vert`
65+
/// - [`Field`] — parses a named or unnamed struct field
5966
///
67+
/// [`Vec<Attribute>`]: Attribute
68+
/// [`Vec<Arm>`]: Arm
6069
/// [`Vec<Stmt>`]: Block::parse_within
70+
/// [`Pat`]: Pat::parse_multi_with_leading_vert
71+
/// [`Box<Pat>`]: Pat::parse_multi_with_leading_vert
6172
///
6273
/// # Panics
6374
///

0 commit comments

Comments
 (0)