diff options
| author | Kevin Ballard <kevin@sb.org> | 2014-05-08 19:04:23 -0700 |
|---|---|---|
| committer | Kevin Ballard <kevin@sb.org> | 2014-05-08 19:04:23 -0700 |
| commit | 0381ad4fdf27c36a033dacd924fbf7c359298c87 (patch) | |
| tree | 205a210780924d869f3078e85db6a3d20cff38b1 /src/rustllvm/RustWrapper.cpp | |
| parent | c4f0980d2ea43d3ab7e0cf14fee81de8df5c867a (diff) | |
| download | rust-0381ad4fdf27c36a033dacd924fbf7c359298c87.tar.gz rust-0381ad4fdf27c36a033dacd924fbf7c359298c87.zip | |
vim: Fix an indentation issue with cindent
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
