Skip to content

feat: implement map shorthand syntax - #37

Merged
Seddryck merged 1 commit into
mainfrom
codex/issue-36-map-shorthand
Aug 13, 2026
Merged

feat: implement map shorthand syntax#37
Seddryck merged 1 commit into
mainfrom
codex/issue-36-map-shorthand

Conversation

@Seddryck

Copy link
Copy Markdown
Owner

Summary

  • preserve |> as a dedicated map_shorthand CST node
  • keep mapped-expression scope separate from subsequent outer pipeline operations
  • add structural corpus coverage for arguments, pipelines, whitespace, malformed operators, and ordinary |

Validation

  • tree-sitter test --rebuild --include "Simple map shorthand|Mapped function|Mapped multi-step|Map shorthand|Ordinary pipeline" (9/9 passed)
  • full unaffected corpus excluding six pre-existing Windows CRLF-sensitive snapshots (91/91 passed)
  • git diff --check

The package-level native Node build remains blocked by the existing MSBuild Release|Win32 configuration mismatch.

Closes #36

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@Seddryck, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 90 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 538c54cf-73db-427c-9080-49f8ceaeeb74

📥 Commits

Reviewing files that changed from the base of the PR and between 1e9da70 and 52e59df.

📒 Files selected for processing (6)
  • grammar.js
  • src/grammar.json
  • src/node-types.json
  • src/parser.c
  • test/corpus/invalid.txt
  • test/corpus/map-shorthand.txt

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Seddryck
Seddryck marked this pull request as ready for review August 13, 2026 06:04
@Seddryck
Seddryck merged commit 1cf7158 into main Aug 13, 2026
11 of 12 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.

Implement map shorthand

1 participant