Skip to content

Conversation

@zharinov
Copy link
Member

Summary

  • Add AnchorInAlternation diagnostic to reject anchors directly in alternations (e.g., [(a) . (b)])
  • Parser now emits helpful error with fix suggestion: use [{(a) . (b)} (c)] to anchor within a branch
  • Update lang-reference.md and CLAUDE.md with anchor placement rules

Test plan

  • make test passes (675 tests)
  • New tests in anchors_tests.rs verify error messages

@zharinov zharinov enabled auto-merge (squash) December 31, 2025 13:09
@zharinov zharinov merged commit 342e33f into master Dec 31, 2025
4 checks passed
@zharinov zharinov deleted the feat/anchor-validation branch December 31, 2025 13:10
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