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

Conversation

susliko
Copy link
Collaborator

@susliko susliko commented Aug 8, 2023

Resolves #318

Summary

Optional trailing $._automatic_semicolon in $._function_cunstructor. This enables correct parsing of the code like:

def foo()
  : Int = 42
given foo(using foo: Foo)
  : Foo = foo

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
```
Copy link
Collaborator

@ckipp01 ckipp01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @susliko!

@ckipp01 ckipp01 merged commit f086fb0 into tree-sitter:master Aug 9, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return type on new line
2 participants