Skip to content

Conversation

@rssh
Copy link
Contributor

@rssh rssh commented Nov 29, 2025

No description provided.

@rssh rssh force-pushed the feat/one-element-tuple-syntax branch from ef928a3 to 2fc86aa Compare November 29, 2025 14:39
@soronpo soronpo marked this pull request as draft November 29, 2025 15:33
- Add preserveTrailingComma flag to Scanner Region class to prevent
  trailing comma from being silently consumed in tuple contexts
- Update Parser to use the flag in expression, type, and pattern parsing
- Implement empty tuple syntax (,) for expressions, types, and patterns
- Add inParensWithTrailingComma helper for cleaner tuple parsing
- Ensure (a,<newline>) and (a, b,<newline>) are correctly parsed as tuples
- Add tests for single/multi-element tuples, empty tuples, and multiline variants
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.

1 participant