Parse try block as verbatim expr
diff --git a/src/expr.rs b/src/expr.rs
index 979de71..841f934 100644
--- a/src/expr.rs
+++ b/src/expr.rs
@@ -1573,6 +1573,9 @@
// must be before ExprStruct
call!(unstable_async_block) => { Expr::Verbatim }
|
+ // must be before ExprStruct
+ call!(unstable_try_block) => { Expr::Verbatim }
+ |
// must be before expr_path
cond_reduce!(allow_struct, syn!(ExprStruct)) => { Expr::Struct }
|
@@ -2159,6 +2162,18 @@
));
#[cfg(feature = "full")]
+ named!(unstable_try_block -> ExprVerbatim, do_parse!(
+ begin: call!(verbatim::grab_cursor) >>
+ many0!(Attribute::parse_outer) >>
+ keyword!(try) >>
+ syn!(Block) >>
+ end: call!(verbatim::grab_cursor) >>
+ (ExprVerbatim {
+ tts: verbatim::token_range(begin..end),
+ })
+ ));
+
+ #[cfg(feature = "full")]
named!(fn_arg -> FnArg, do_parse!(
pat: syn!(Pat) >>
ty: option!(tuple!(punct!(:), syn!(Type))) >>