Repository navigation
fix: report unfinished concise constructs at EOF - #268
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: 378a378 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
In concise mode EOF ended any expression without an error, so an unclosed
`(…`, `{…`, `<…`, `|…`, `$ {…` or `${…` was accepted and reported with a
range claiming a closer past the end of the input. Expressions a closer
ends now reach the EOF error, as in html mode, and that error names what
was being parsed. An `<!--->` comment's value is an empty range, not an
inverted one.
Tests that would have caught these: every fixture also runs with CRLF line
endings, every prefix of every fixture (an EOF at each position) must report
only in-range, non-inverted ranges, and new fixtures cover multibyte input.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
DylanPiercey
force-pushed
the
dpiercey-w2-htmljs-rust-4t8x5b
branch
from
November 13, 2026 22:36
aca03ee to
378a378
Compare
Finishing Touches
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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #268 +/- ##
=======================================
Coverage 99.89% 99.89%
=======================================
Files 35 35
Lines 4930 4990 +60
Branches 971 986 +15
=======================================
+ Hits 4925 4985 +60
- Misses 4 5 +1
+ Partials 1 0 -1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In concise mode an unclosed
(,{,<,|,$ {or${at EOF was accepted silently: no error, and the event claimed a closer past the end of the input (foo onclick(e,foo(e,$ { x;foo${xemitted nothing at all). Expressions that a closer ends now reach the EOF error, as they already did in html mode. That error now names what was being parsed ("attribute arguments for the "onclick" attribute", "tag parameters for the "foo" tag", …) instead of always saying "attribute value" or "attribute name", and an<!--->comment's value is an empty range rather than an inverted one.It also adds tests that would have caught these: every fixture also runs with CRLF line endings, every prefix of every fixture (an EOF at each position) must report only in-range, non-inverted ranges, and new fixtures cover multibyte input, which none did before.
🤖 Generated with Claude Code