Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: do not push expectation errors to EOF#539

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
juleswritescode merged 5 commits intomainfromfix/#536
Sep 26, 2025
Merged

Conversation

@juleswritescode
Copy link
Collaborator

Splitter Context: If we expect a following keyword, but the next token is EOF, we'd push the expectation error onto the EOF token.

That EOF token is the last token in thekind vector, soi == kind.len() - 1, soself.start[i+1] would error:

Screenshot 2025-09-26 at 11 41 39Screenshot 2025-09-26 at 11 38 25

To solve this case, we'll push the expectation error on the last token before EOF.

Copy link
Collaborator

@psteinroepsteinroe left a comment

Choose a reason for hiding this comment

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

oh wow, great catch!

@juleswritescodejuleswritescode merged commit21ce254 intomainSep 26, 2025
8 checks passed
@juleswritescodejuleswritescode deleted the fix/#536 branchOctober 28, 2025 15:24
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@psteinroepsteinroepsteinroe approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@juleswritescode@psteinroe

[8]ページ先頭

©2009-2025 Movatter.jp