about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorChris Morgan <me@chrismorgan.info>2014-04-24 23:33:28 +1000
committerChris Morgan <me@chrismorgan.info>2014-04-24 23:33:28 +1000
commit7266587f3e52513328926d9229be7003323ceac8 (patch)
treee564235f3359335c23d0500a23ea0cc3eadff2f7 /src/rustllvm/RustWrapper.cpp
parente01e78fd00c78fd3b7f92fb0d6d58e05801d5d38 (diff)
downloadrust-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