Skip to content

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

@tsmock

Description

@tsmock

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions