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

fix(parser): make empty catch an incomplete. #14519

Merged
merged 1 commit into from Feb 21, 2022

Commits on Feb 19, 2022

  1. fix(parser): make empty catch an incomplete.

    When parsing a `TRY` if there is an empty catch block instead of just
    returning a syntax error return an incomplete if you're at the EOF. This
    ensures that in the REPL if you are in a position like:
    
    ```scala
    scala> try {
         | ???
         | } catch
    ```
    
    And you hit enter you'll still be able to continue.
    
    Fixes scala#4393
    ckipp01 committed Feb 19, 2022
    Configuration menu
    Copy the full SHA
    cd143da View commit details
    Browse the repository at this point in the history