Skip to content

Parsing fails on PGN with multiple comments after final move #17

Open
@gtim

Description

@gtim

Thank you again for this stellar package. It seems PGNs with multiple comments after the final move cannot be parsed. The following PGN throws a syntax error on parse:

[Result "*"]

1. d4 Nf6 { comment 1 } { comment 2 } *

As far as I can tell, the PGN is according to the specification. The following parses properly:

[Result "*"]

1. d4 Nf6 { comment 1 } { comment 2 } 2. Bg5 *

If you're interested, I'd be happy to look into the grammar and write a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions