| OLD | NEW |
| 1 40 columns | | 1 40 columns | |
| 2 >>> indentation | 2 >>> indentation |
| 3 if(true){return 42;}else{return 13;} | 3 if(true){return 42;}else{return 13;} |
| 4 <<< | 4 <<< |
| 5 if (true) { | 5 if (true) { |
| 6 return 42; | 6 return 42; |
| 7 } else { | 7 } else { |
| 8 return 13; | 8 return 13; |
| 9 } | 9 } |
| 10 >>> nested | 10 >>> nested |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 if (true) print("true!"); | 37 if (true) print("true!"); |
| 38 >>> block then body | 38 >>> block then body |
| 39 if(true){print("true!");} | 39 if(true){print("true!");} |
| 40 <<< | 40 <<< |
| 41 if (true) { | 41 if (true) { |
| 42 print("true!"); | 42 print("true!"); |
| 43 } | 43 } |
| 44 >>> single-expression else body | 44 >>> single-expression else body |
| 45 if(true)print(1);else print(0); | 45 if(true)print(1);else print(0); |
| 46 <<< | 46 <<< |
| 47 if (true) print(1); | 47 if (true) |
| 48 else print(0); | 48 print(1); |
| 49 else |
| 50 print(0); |
| 49 >>> chained else if | 51 >>> chained else if |
| 50 if (0 == 0) { | 52 if (0 == 0) { |
| 51 zero = 0; | 53 zero = 0; |
| 52 } else if (0 == 1) { | 54 } else if (0 == 1) { |
| 53 zero = 1; | 55 zero = 1; |
| 54 } else if (0 == 2) { | 56 } else if (0 == 2) { |
| 55 zero = 2; | 57 zero = 2; |
| 56 } | 58 } |
| 57 <<< | 59 <<< |
| 58 if (0 == 0) { | 60 if (0 == 0) { |
| 59 zero = 0; | 61 zero = 0; |
| 60 } else if (0 == 1) { | 62 } else if (0 == 1) { |
| 61 zero = 1; | 63 zero = 1; |
| 62 } else if (0 == 2) { | 64 } else if (0 == 2) { |
| 63 zero = 2; | 65 zero = 2; |
| 64 } | 66 } |
| 67 >>> long if without curlies |
| 68 if (condition) someLong(argument, another); |
| 69 <<< |
| 70 if (condition) |
| 71 someLong(argument, another); |
| 72 >>> long if else without curlies |
| 73 if (condition) |
| 74 someLong(argument, another); |
| 75 else |
| 76 anotherLong(argument, another); |
| 77 <<< |
| 78 if (condition) |
| 79 someLong(argument, another); |
| 80 else |
| 81 anotherLong(argument, another); |
| 82 >>> long if long else without curlies |
| 83 if (condition) |
| 84 someLong(argument, another); |
| 85 else |
| 86 anotherLong(argument, another, arg); |
| 87 <<< |
| 88 if (condition) |
| 89 someLong(argument, another); |
| 90 else |
| 91 anotherLong(argument, another, arg); |
| OLD | NEW |