Skip to content

SIP-58 Named tuples support #446

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 3 commits into from
Dec 16, 2024
Merged

Conversation

eed3si9n
Copy link
Collaborator

@eed3si9n eed3si9n commented Dec 14, 2024

Problem

SIP-58 Named tuples are now available as an experimental feature.

Solution

This implements a support for them.

**Problem**
Named tuples are now available as an experimental feature.

**Solution**
This implements a support for them.
@@ -991,6 +1016,7 @@ module.exports = grammar({
$.interpolated_string_expression,
$.capture_pattern,
$.tuple_pattern,
$.named_tuple_pattern,
$.case_class_pattern,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we also need a modified case_class_pattern with the named arguments: https://docs.scala-lang.org/sips/named-tuples.html#pattern-matching-with-named-fields-in-general

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Addressed in 690838e

@eed3si9n eed3si9n merged commit fb9aa82 into tree-sitter:master Dec 16, 2024
4 checks passed
@eed3si9n eed3si9n deleted the wip/sip-58 branch December 16, 2024 05:33
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.

2 participants