File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -910,10 +910,13 @@ fn parse_bottom_expr(p: parser) -> @ast::expr {
910
910
ex = ast:: expr_fail ( some ( e) ) ;
911
911
} else { ex = ast:: expr_fail ( none) ; }
912
912
} else if eat_word ( p, "log_full" ) {
913
+ expect ( p, token:: LPAREN ) ;
913
914
let lvl = parse_expr ( p) ;
915
+ expect ( p, token:: COMMA ) ;
914
916
let e = parse_expr ( p) ;
915
917
ex = ast:: expr_log ( 2 , lvl, e) ;
916
- hi = e. span . hi ;
918
+ hi = p. get_hi_pos ( ) ;
919
+ expect ( p, token:: RPAREN ) ;
917
920
} else if eat_word ( p, "log" ) {
918
921
let e = parse_expr ( p) ;
919
922
ex = ast:: expr_log ( 1 , mk_lit_u32 ( p, 1u32 ) , e) ;
Original file line number Diff line number Diff line change @@ -919,8 +919,12 @@ fn print_expr(s: ps, &&expr: @ast::expr) {
919
919
0 { word_nbsp ( s, "log_err" ) ; print_expr ( s, expr) ; }
920
920
2 {
921
921
word_nbsp ( s, "log_full" ) ;
922
- word ( s . s , " " ) ;
922
+ popen ( s ) ;
923
923
print_expr ( s, lexp) ;
924
+ word ( s. s , "," ) ;
925
+ space_if_not_bol ( s) ;
926
+ print_expr ( s, expr) ;
927
+ pclose ( s) ;
924
928
}
925
929
}
926
930
}
You can’t perform that action at this time.
0 commit comments