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

Allow return types on new lines in definitions #333

Merged
merged 1 commit into from
Aug 9, 2023

Commits on Aug 8, 2023

  1. Allow return types on new lines in definitions

    Resolves tree-sitter#318
    
    Summary
    ----
    Optional trailing `$._automatic_semicolon` in `$._function_cunstructor`.
    This enables correct parsing of the code like:
    ```scala
    def foo()
      : Int = 42
    given foo(using foo: Foo)
      : Foo = foo
    ```
    susliko committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    ce7e098 View commit details
    Browse the repository at this point in the history