ZDoom MAPINFO comment parsing

Tue Feb 09, 2021 7:43 pm

Hi, I'm currently implementing a parser for a source port that is capable of reading both old and new style ZDoom MAPINFO. While I'm aware MAPINFO's current commenting style is C-style (//) there was mention of previous standards possibly supporting semicolons instead. Was this a thing, and if so how should I account for it? Should I just consider both valid comments at any time?

Re: ZDoom MAPINFO comment parsing

Wed Feb 10, 2021 1:25 am

The original Hexen parser did indeed use semicolons for comments, so for the old format you need to handle semicolons as comments that span the rest of the line.
The parse mode for the new format does not recognize this as comment.