You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new indent function for Python mimics the behaviour of indent function
as seen in Emacs, where hiting 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
foo = bar|
```
after `newline-and-indent`:
```python
foo = bar
|
^ it should not have indented, since it's just a top-level
assignment, not a `def` or `class`.
```
0 commit comments