Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented improved Python indent function.
The new indent function for Python mimics the behaviour of indent function as seen in Emacs, where hitting tab key will cycle through the following positions: - Same indent level as last line. - +1 indent level relative to last line. - -1 indent level relative to last line. There're still a flaw in this function, that I currently have no idea how to fix: ```python v Cursor. foo = bar| ``` after `newline-and-indent`: ```python foo = bar | ^ It should not have indented, since the last line is just a top-level declaration. ```
- Loading branch information