line after colon with inline comment won't indent properly
Bug #1109946 reported by
Ryan Olf
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
py-version: 6.1.1
emacs-version: GNU Emacs 24.3.50.3 (x86_64-
Following a line ending in a colon (for example "if expression:") and including an inline comment ("if expression: # inline comment"), python-mode will not increase the indentation level as it should , even with repeated <TAB> presses.
Code example:
def f():
if a:
b
if c: # inline comment
|<---- cursor will not indent properly with <TAB>>
Changed in python-mode: | |
milestone: | none → 6.1.1 |
assignee: | nobody → Andreas Roehler (a-roehler) |
importance: | Undecided → Medium |
Changed in python-mode: | |
status: | New → In Progress |
Changed in python-mode: | |
status: | In Progress → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fixed for me too. Great work, Andreas, and thank you.