I think the grammar should be updated by replacing NEWLINE by NEWLINE+ where correspond (different places at all such as between features, between constraints, and at the end of the file).
Moreover, the comments are also delicated and crashes (for example comments in the constraints section).