Skip to content

Add spread operator and multiple switch cases support#40

Merged
princemaple merged 7 commits intomainfrom
feature/spread-and-multicase-support
Jan 26, 2026
Merged

Add spread operator and multiple switch cases support#40
princemaple merged 7 commits intomainfrom
feature/spread-and-multicase-support

Conversation

@princemaple
Copy link
Copy Markdown
Owner

Summary

  • Add spread operator (...) support in arrays, objects, and function call arguments
  • Support fallthrough pattern for multiple @case statements sharing a single block

Test plan

  • Verify spread in arrays: {{ [a, ...rest, b] }}
  • Verify spread in objects: {{ { a: 1, ...obj } }}
  • Verify rest arguments: {{ func(a, ...args) }}
  • Verify multiple case fallthrough:
    @case (1)
    @case (2)
    @case (3) {
      <span>Matched</span>
    }

🤖 Generated with Claude Code

princemaple and others added 7 commits January 27, 2026 09:35
- Add spread operator (...) support in arrays, objects, and function calls
- Support fallthrough pattern for multiple @case statements sharing a block

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This reverts commit 8e2c337.
@princemaple princemaple merged commit f3d249d into main Jan 26, 2026
2 checks passed
@princemaple princemaple deleted the feature/spread-and-multicase-support branch January 26, 2026 23:49
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