Skip to content

Getting rid of (parse-error) #60

Open
@Hi-Angel

Description

@Hi-Angel

As described in cc34919, whole idea of ever returning a parsing error in indentation engine is flawed. The code in the buffer will be incorrect even if indentation engine has no bugs. That's what people do: they write code till they decide it is complete and correct, and most of the time spent in writing it is not. If indentation engine ever stumbles upon something seemingly incorrect, it should return best approximation (typically just the previous indentation), and let the user do the rest. That's what most indentation engines do.

As part of this task we need to remove parser-error from the codebase, and once that's complete we can remove the workaround added in cc34919 as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions