Closed tajmone closed 3 years ago
Thanks for finding these corner cases ;-) This only happened if the source had CRLF line terminators.
This only happened if the source had CRLF line terminators.
Somehow, I suspected this. I just can't believe how many problems software developers are still facing today because of this Jurassic-old problem of EOL differences. Sometimes, it seems like we're never going to get rid of it.
It looks like block comments introduced another bug (this one might be quite serious, as it compromises correct source parsing).
Take the
kitchen-ascii.alan
sample adventure available at:If you edit the source file, and remove the empty line between the end of the block comment and the
Syntax 'look'
statement:Compiling will issue the following warning:
which of course is incorrect, since the
Syntax
for look is there, but it seems that the missing empty line after the closing block comment is hiding it from the parser.