Implementing Javascript-style autoindentation.
Re-implemented indentation.

This method uses Ruby’s auto indentation as a basis, just changing a
few regular expressions.