Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(#3744): Human-Readable Error Message for Prohibited Comment in an Object Definition #3818

Merged
merged 14 commits into from
Jan 17, 2025

Conversation

volodya-lombrozo
Copy link
Member

Another approach for the same problem that I tried to solve recently:
#3802

Actually, in this PR I change the objects rule definition from:

objects
    : (object EOL?)* object
    ;

to:

objects
    : (object EOL?)+
    ;

It helps to catch a more inforamtive parsing errors (see tests with examples.)

Closes: #3744

@github-actions github-actions bot added the core label Jan 15, 2025
@volodya-lombrozo
Copy link
Member Author

@maxonfjvipon Could you review this one, please?

@volodya-lombrozo volodya-lombrozo changed the title feat(#3744): Fix Eo.g4 Grammar Definition of objects Rule feat(#3744): Human-Readable Error Message for Prohibited Comment in an Object Definition Jan 16, 2025
@volodya-lombrozo
Copy link
Member Author

@yegor256 Could you review these changes, please?

@volodya-lombrozo
Copy link
Member Author

@yegor256 Friendly reminder

yegor256 added a commit that referenced this pull request Jan 17, 2025
@yegor256 yegor256 merged commit a324eec into objectionary:master Jan 17, 2025
21 of 22 checks passed
@yegor256
Copy link
Member

@volodya-lombrozo thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

comment-in-method.yaml:24-26: The error message doesn't...
3 participants