diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-01-21 09:13:36 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-01-21 09:13:36 -0800 |
| commit | 83af23ea49a907ddda8915775cfb5d8c4cff5682 (patch) | |
| tree | 6584e1895c571731b62af312bbc27091b51d0b95 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 6869645e86c91544b8737b89809bdf10bef536d9 (diff) | |
| parent | 8051bd06260e4587e183e6055a6794414e7c76f9 (diff) | |
| download | rust-83af23ea49a907ddda8915775cfb5d8c4cff5682.tar.gz rust-83af23ea49a907ddda8915775cfb5d8c4cff5682.zip | |
rollup merge of #19913: KOMON/rust-mode-emacs-indentation
I added an option to auto-indent method chains to line up along their '.' operators. Like so:
```
let input = io::stdin().readline()
.ok()
.expect("Failed to read line");
```
The old default would indent like so:
```
let input = io::stdin().readme()
.ok()
.expect("Failed to read line");
```
The Rust guide explicitly condones the former, so I thought it would be nice for the emacs mode to support it. It's off by default, you have to set ```rust-indent-method-chain``` to ```t``` via your .emacs or the customize menu
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
