Skip to content

Conversation

@dyc3
Copy link
Contributor

@dyc3 dyc3 commented Nov 22, 2025

Summary

fixes #8190

Test Plan

Added snapshot tests

Docs

@changeset-bot
Copy link

changeset-bot bot commented Nov 22, 2025

🦋 Changeset detected

Latest commit: d37d42f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-win32-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/wasm-web Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added A-Parser Area: parser A-Formatter Area: formatter L-HTML Language: HTML and super languages labels Nov 22, 2025
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 22, 2025

Walkthrough

Adds lexer support for Vue directive arguments by introducing a new VueDirectiveArgument variant to IdentifierContext and extending the HTML lexer to recognise and buffer directive argument names that may include a trailing colon (e.g. @update:modelValue). Adds tests (parser and formatter specs) covering <Foo @update:modelValue="onUpdate" />. Includes a changeset bumping the package patch version. No public API or exported declarations were changed.

Possibly related PRs

Suggested reviewers

  • ematipico

Pre-merge checks and finishing touches

✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main fix: lexing of Vue event handlers with colons.
Description check ✅ Passed The description is related to the changeset, referencing issue #8190 and mentioning added snapshot tests.
Linked Issues check ✅ Passed The PR successfully addresses issue #8190 by fixing Vue event handler parsing with colons, adding test cases and snapshot validation.
Out of Scope Changes check ✅ Passed All changes are directly related to fixing Vue event handler lexing: lexer updates, test cases, and changesets.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dyc3/fix-vue-event-w-colon

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c28e2f2 and d37d42f.

📒 Files selected for processing (1)
  • .changeset/lemon-impalas-check.md (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (9)
  • GitHub Check: Documentation
  • GitHub Check: Check Dependencies
  • GitHub Check: End-to-end tests
  • GitHub Check: Test (depot-ubuntu-24.04-arm-16)
  • GitHub Check: Test (depot-windows-2022-16)
  • GitHub Check: Lint project (depot-ubuntu-24.04-arm-16)
  • GitHub Check: Lint project (depot-windows-2022)
  • GitHub Check: autofix
  • GitHub Check: Test Node.js API
🔇 Additional comments (1)
.changeset/lemon-impalas-check.md (1)

1-5: Looks good! Previous feedback has been incorporated nicely—the description is now specific with a concrete example, and the version bump is appropriate for a bug fix.

Tip

📝 Customizable high-level summaries are now available in beta!

You can now customize how CodeRabbit generates the high-level summary in your pull requests — including its content, structure, tone, and formatting.

  • Provide your own instructions using the high_level_summary_instructions setting.
  • Format the summary however you like (bullet lists, tables, multi-section layouts, contributor stats, etc.).
  • Use high_level_summary_in_walkthrough to move the summary from the description to the walkthrough section.

Example instruction:

"Divide the high-level summary into five sections:

  1. 📝 Description — Summarize the main change in 50–60 words, explaining what was done.
  2. 📓 References — List relevant issues, discussions, documentation, or related PRs.
  3. 📦 Dependencies & Requirements — Mention any new/updated dependencies, environment variable changes, or configuration updates.
  4. 📊 Contributor Summary — Include a Markdown table showing contributions:
    | Contributor | Lines Added | Lines Removed | Files Changed |
  5. ✔️ Additional Notes — Add any extra reviewer context.
    Keep each section concise (under 200 words) and use bullet or numbered lists for clarity."

Note: This feature is currently in beta for Pro-tier users, and pricing will be announced later.


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

@dyc3 dyc3 requested review from a team November 23, 2025 15:41
Doctype,
Svelte,
Vue,
VueDirectiveArgument,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just an FYI. We should plan to remove this context, and make identifiers more predictable and part of the parsing phase.

Keywords and identifiers shouldn't change based on some internal context, simply the parser needs to handle it.

I'm working on a PR for it

Co-authored-by: Emanuele Stoppa <my.burning@gmail.com>
@dyc3 dyc3 merged commit 793bb9a into main Nov 24, 2025
13 checks passed
@dyc3 dyc3 deleted the dyc3/fix-vue-event-w-colon branch November 24, 2025 13:19
This was referenced Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Formatter Area: formatter A-Parser Area: parser L-HTML Language: HTML and super languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

📝 Incorrect formatting of Vue emits where colons are used

3 participants