diff options
| author | bors <bors@rust-lang.org> | 2013-09-07 16:10:58 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-07 16:10:58 -0700 |
| commit | b3d50fc2c015cc8a335855b82ab458a15a7413d9 (patch) | |
| tree | f4a2322fbc592c46dbf7b3d30be115774014e6b2 /src/rustllvm/RustWrapper.cpp | |
| parent | f6b36c676e6b31313a8fd2b31e804bd3d6a4af73 (diff) | |
| parent | a4697342f70bad619eae49d42c41743a67513be3 (diff) | |
| download | rust-b3d50fc2c015cc8a335855b82ab458a15a7413d9.tar.gz rust-b3d50fc2c015cc8a335855b82ab458a15a7413d9.zip | |
auto merge of #9015 : MicahChalmer/rust/emacs-fixes-round-2, r=nikomatsakis
Here are fixes for more problems mentioned in #8787. I think I've addressed everything mentioned there except for @nikomatsakis's comment about match/patterns now. (This also fixes the bug in struct alignment that @pnkfelix mentioned from my earlier pull request #8872.) The biggest change here is to make fill-paragraph (M-q) and auto-fill-mode work inside different variations of multi-line and doc comments. Because of the way emacs paragraph fills work (callbacks interacting with global regexp variables that are used in odd ways) there were quite a few edge cases that I had to work around. The only way I was able to keep it all straight was to create some regression tests. They use the emacs lisp regression testing tool ERT, and are included as the last commit here. I added a few tests for indentation as well. I have not attempted to integrate the tests into the overall rust compiler build process, since I can't imagine anyone would want the compiler build to have a dependency on emacs. Maybe at some point tools like this get their own repositories? Just a thought. One other thought related to the tests: should there be a place to put these types of style samples that isn't specific to one text editor? Maybe as part of an official rust style guide, but in a form that would allow tools like this to pull out the samples and use them for tests?
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
