Skip to content

fix: correct Annotate display, fix typos, update stale docs#5792

Open
prql-bot wants to merge 1 commit intomainfrom
fix/nightly-survey-findings
Open

fix: correct Annotate display, fix typos, update stale docs#5792
prql-bot wants to merge 1 commit intomainfrom
fix/nightly-survey-findings

Conversation

@prql-bot
Copy link
Copy Markdown
Collaborator

Summary

  • Fix Annotate display string in prqlc/prqlc-parser/src/lexer/lr.rs: The TokenKind::Annotate variant's Display impl rendered as @{ but the token represents a bare @ character (as documented in the comment on line 53: Annotate, // @ and as lexed in mod.rs:169). This would cause incorrect error messages when the @ token appeared in diagnostics.

  • Fix typo in transforms.rs at prqlc/prqlc/src/semantic/resolver/transforms.rs line 945: Changed "it much point to an input" to "it must point to an input".

  • Update stale lezer README in grammars/prql-lezer/README.md: Removed a 2022-12 claim ("none yet use it") that was over 3 years old. Updated the Developing section to acknowledge the 11 existing test files in test/ instead of claiming there are no tests.

Test plan

  • cargo test -p prqlc-parser -p prqlc --lib passes (all 159 tests)
  • No snapshot files reference @{ so no snapshot updates needed
  • Comment and README changes are documentation-only

🤖 Generated with Claude Code

- Fix Annotate token Display impl: render as `@` not `@{` (matches
  the comment on lr.rs:53 and the lexer in mod.rs:169)
- Fix typo in transforms.rs: "much" -> "must"
- Update lezer README: remove stale 2022-12 claim, acknowledge
  existing test/ directory

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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