Skip to content

Fix valid class tweaker files initially erroring until reopened#2608

Merged
Earthcomputer merged 3 commits intominecraft-dev:devfrom
Juuxel:fix/everything-erroring-in-ct
Apr 13, 2026
Merged

Fix valid class tweaker files initially erroring until reopened#2608
Earthcomputer merged 3 commits intominecraft-dev:devfrom
Juuxel:fix/everything-erroring-in-ct

Conversation

@Juuxel
Copy link
Copy Markdown
Contributor

@Juuxel Juuxel commented Apr 13, 2026

This slightly hacky fix utilises a "fake token" that matches real-looking line starts. It's unused in the parser so the user will still see an error when needed as the INCOMPLETE_ENTRY_START tokens are always illegal.

The exact issue seems to be with the BAD_CHARACTER returns for valid characters, since the characters themselves can be valid later when the keyword is fully typed.

Juuxel added 3 commits April 12, 2026 23:29
The slightly hacky fix utilises a "fake token" that matches real-looking
line starts. It's unused in the parser so the user will still see an error
when possible, but eliminating the BAD_CHARACTER inputs for valid
*characters* seems to fix the incorrect error highlighting.
Copy link
Copy Markdown
Member

@Earthcomputer Earthcomputer left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@Earthcomputer Earthcomputer merged commit d306724 into minecraft-dev:dev Apr 13, 2026
4 of 5 checks passed
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