Skip to content

fix: improved error messages#224

Merged
paxcut merged 1 commit intomasterfrom
fix/invalid_keyword_error_messages
Mar 19, 2026
Merged

fix: improved error messages#224
paxcut merged 1 commit intomasterfrom
fix/invalid_keyword_error_messages

Conversation

@paxcut
Copy link
Collaborator

@paxcut paxcut commented Mar 18, 2026

Currently, when the parser encounters an invalid keyword inside a function or a structure it gives an invalid function statement or invalid member definition error instead of stating that an invalid keyword was found.

This PR aims at detecting any keyword that is caught after all the valid ones have been parsed to give a more appropriate error message

This was written as a response to the feature request of better error messages when loops are used inside structs made in the ImHex issues #2687 but expands on it to include all possible invalid keywords.

Currently, when the parser encounters an invalid keyword inside a function or a structure it gives an invalid function statement or invalid member definition error instead of stating that an invalid keyword was found. This was written as a response to the feature request of better error messages when loops are used inside structs but expands on it to include all possible invalid keywords
@paxcut paxcut merged commit 9adb369 into master Mar 19, 2026
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.

1 participant