… multi-line functions
…itmapType is Xlib)
See autoindent_test.html, there are a couple of tests that no longer pass. However, the new test that passes seems way more important. It is not obvious to me whether the old tests can easily be fixed, and it also seems like those cases are uncommon and the new behavior is not horrible.
Also was wrong in R Markdown. R mode had R-specific logic for auto-outdent, while Sweave was trying to use generic Ace logic (which only outdents closing curly braces, not opening ones), and R Markdown had no auto-outdent logic at all. Extracted the R logic into r_matching_brace_outdent as a mixin and applied across all 3 modes.