Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Indentation error #64

Open
Open
@muppetjones

Description

@muppetjones

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions