Vimjas / vim-python-pep8-indent

A nicer Python indentation style for vim.
Creative Commons Zero v1.0 Universal
790 stars 69 forks source link

Fix indentation after comment with colon #2

Closed cordarei closed 12 years ago

cordarei commented 12 years ago

Hi!

Currently, GetPythonIndent adds an indent after any line ending in a colon, but if a comment ends in a colon the next line should not be indented. I added a condition to check for a '#' at the start of the line. This seems to give me the desired behavior.

Cheers,

Joseph

hynek commented 12 years ago

Awesome, thanks!