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

Have a better message than <string> expected, got '<string>' when the strings are equal #373

Open
tsmock opened this issue Aug 22, 2024 · 0 comments

Comments

@tsmock
Copy link

tsmock commented Aug 22, 2024

I've got a message that is thoroughly confusing.

From the MapCSS.bnf and MapCSS.bnf.preview file (Archive.zip), I get the following message in IntelliJ 2024.2.0.2 (242.20224.419) with Grammar-Kit 2022.3.2:

meta expected, got 'meta'

This comes from

message = expected + " expected, got '" + first(actual, MAX_ERROR_TOKEN_TEXT, true) + "'";

Unfortunately, I have no idea why the meta expected, got 'meta' appears.

Additional notes:

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

No branches or pull requests

1 participant