File tree Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Expand file tree Collapse file tree 1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -127,18 +127,23 @@ enum view_item_parse_mode {
127
127
The important thing is to make sure that lookahead doesn't balk
128
128
at INTERPOLATED tokens */
129
129
macro_rules! maybe_whole_expr (
130
- ( $p: expr) => ( match * $p. token {
131
- INTERPOLATED ( token:: nt_expr( e) ) => {
132
- $p. bump( ) ;
133
- return e;
134
- }
135
- INTERPOLATED ( token:: nt_path( pt) ) => {
136
- $p. bump( ) ;
137
- return $p. mk_expr( $p. span. lo, $p. span. lo,
138
- expr_path( pt) ) ;
139
- }
140
- _ => ( )
141
- } )
130
+ ( $p: expr) => (
131
+ match * $p. token {
132
+ INTERPOLATED ( token:: nt_expr( e) ) => {
133
+ $p. bump( ) ;
134
+ return e;
135
+ }
136
+ INTERPOLATED ( token:: nt_path( pt) ) => {
137
+ $p. bump( ) ;
138
+ return $p. mk_expr(
139
+ $p. span. lo,
140
+ $p. span. hi,
141
+ expr_path( pt)
142
+ ) ;
143
+ }
144
+ _ => ( )
145
+ }
146
+ )
142
147
)
143
148
144
149
macro_rules! maybe_whole (
You can’t perform that action at this time.
0 commit comments