Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't swallow trailing whitespace #976

Merged
merged 2 commits into from
Jul 18, 2023
Merged

Don't swallow trailing whitespace #976

merged 2 commits into from
Jul 18, 2023

Commits on May 28, 2023

  1. Fix parsing of code without trailing newlines

    When the input doesn't have a trailing newline, but the last line had
    exactly the amount of bytes as the current indentation level, the
    tokenizer didn't emit a fake newline, causing parse errors (the grammar
    expects newlines to conform with the Python spec).
    
    I don't see any reason for fake newlines to be omitted in these cases,
    so this PR removes that condition from the tokenizer.
    
    Reported in #930.
    zsol committed May 28, 2023
    Configuration menu
    Copy the full SHA
    07a168b View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2023

  1. Configuration menu
    Copy the full SHA
    ef1801a View commit details
    Browse the repository at this point in the history