diff options
| author | bors <bors@rust-lang.org> | 2014-05-09 23:51:30 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-05-09 23:51:30 -0700 |
| commit | a7d877ce620cc26a9d8549154c9e3e81456212d5 (patch) | |
| tree | 16799d13f66e7ed1baffa576bb044abe52a8d938 /src/rustllvm/RustWrapper.cpp | |
| parent | 5b4774dafc6e1470fdd3c29c5ac365a5a1fa4a60 (diff) | |
| parent | 0381ad4fdf27c36a033dacd924fbf7c359298c87 (diff) | |
| download | rust-a7d877ce620cc26a9d8549154c9e3e81456212d5.tar.gz rust-a7d877ce620cc26a9d8549154c9e3e81456212d5.zip | |
auto merge of #14056 : kballard/rust/vim_indent_fix, r=huonw
cindent handles the following case incorrectly:
impl X {
b: int,
//
c: int,
}
if you try and insert a new line after the `c` declaration.
To fix this, fix the get_line_trimmed() function to work properly, and
then extend GetRustIndent to keep searching backwards until it finds a
non-blank line after trimming. This lets it handle the trailing comma
case properly, as if the comment were never there.
Fixes #14041.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
