about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-09 23:51:30 -0700
committerbors <bors@rust-lang.org>2014-05-09 23:51:30 -0700
commita7d877ce620cc26a9d8549154c9e3e81456212d5 (patch)
tree16799d13f66e7ed1baffa576bb044abe52a8d938 /src/rustllvm/RustWrapper.cpp
parent5b4774dafc6e1470fdd3c29c5ac365a5a1fa4a60 (diff)
parent0381ad4fdf27c36a033dacd924fbf7c359298c87 (diff)
downloadrust-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