ZDoom MAPINFO comment parsing
Moderator: GZDoom Developers
Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!
If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.
We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!
If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.
We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.
ZDoom MAPINFO comment parsing
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?
- Graf Zahl
- Lead GZDoom+Raze Developer
- Posts: 49071
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: ZDoom MAPINFO comment parsing
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.
The parse mode for the new format does not recognize this as comment.