language-python
language-python copied to clipboard
Indentation error
Massive indentation problem in vanilla atom 0.198.0:
def testing_indentation(some_var):
first_line = 'indentation works'
second_line = a_function(that_has,
lots_of,
parameters,
)
third_line = another_function(
ending_parenthesis,
moved_to_end_correctly,
but_matching_broken="need to move cursor manually",
)
fourth_line = existing_indentation('try this',
'indentation test')
next_line = 'still bad'
no_reset = 'uh oh'
'comes back here, too'
fifth_try = existing_indentation(
'another indentation scheme',
'with multiple variables',
)
no_surprise = 'also broken'
if indentation is not None:
basic_indent = True
elif indentation == "elif works?":
basic_indent = True
if nested is True:
basic_indent = True
else:
still_works = True
else:
raise IndentationError
still_indented = 'expected'
seventh_tr = how_about + an_uncommon + \
but_still_valid + \
example + '?'
Initial post here
This is a duplicate of atom/language-python#22 right?