haha. No, it's a logarithmic function. 1.5, then 1.25, then 1.125...
I ended up missing some, restructuring some things for rust, and I still have one function left. But it's only used for paren mode. And since I still haven't run any of the code, I'm now going to write a little driver and or port the test driver, so that I can see whether it works
All indent mode tests produce the correct output text. (Not checking tab stops or anything else yet.)
This is really cool. @eraserhd do you have smart mode?
Not yet. As of right now, indent mode is finished and passing 100% of tests.
Now on to paren mode!
(Most of the code for that path has been done, just to make the tests work.)
I think I'm going to keep it non-idiomatic rust so that it can be kept in sync with the JavaScript.
Paren mode tests passing!