Skip to content

Using clause in $.arguments #235

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

Merged
merged 2 commits into from
May 25, 2023

Conversation

susliko
Copy link
Collaborator

@susliko susliko commented May 25, 2023

Resolves #223

Problem

Scala 3 introduced using clauses to function call expressions:

f(using A)

The grammar did not allow that

Solution

Add choice between regular and using-clause argument lists in $.arguments

@susliko susliko force-pushed the func-call-using-clauses branch from 8f50b36 to 8cb5a00 Compare May 25, 2023 15:33
Problem
-------
Scala 3 introduced using clauses to function call expressions:
```scala
f(using A)
```
The grammar did not allow that

Solution
-------
Add `choice` between regular and using-clause argument lists in
`$.arguments`
@susliko susliko changed the title Using clause in $.call_expression Using clause in $.arguments May 25, 2023
Copy link
Collaborator

@eed3si9n eed3si9n 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!

@eed3si9n eed3si9n merged commit 2b6e547 into tree-sitter:master May 25, 2023
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.

Using clause in call expression
2 participants