diff options
| author | Chris Morgan <me@chrismorgan.info> | 2014-04-24 23:33:28 +1000 |
|---|---|---|
| committer | Chris Morgan <me@chrismorgan.info> | 2014-04-24 23:33:28 +1000 |
| commit | 7266587f3e52513328926d9229be7003323ceac8 (patch) | |
| tree | e564235f3359335c23d0500a23ea0cc3eadff2f7 /src/rustllvm/RustWrapper.cpp | |
| parent | e01e78fd00c78fd3b7f92fb0d6d58e05801d5d38 (diff) | |
| download | rust-7266587f3e52513328926d9229be7003323ceac8.tar.gz rust-7266587f3e52513328926d9229be7003323ceac8.zip | |
Fix Vim indent regressions from #13600.
The change in #13600 was incorrect, containing a bad regular expression; inside an indent function, errors are silently ignored (and the ``~=`` operation will return 0), so it just always failed, causing the cases that were supposed to be caught to not be caught and making things like the ``match`` example shown above or struct field definitions regress. I have fixed the regular expression to what it should have been. This is still imperfect, of course, not handling cases like where the first argument to a function is a function call (``foo(bar(),``), but it'll do for now.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
