Conditional compilation

When developing a web application, it may be useful to have some conditional code, which should only available in debug configuration.

I tried to use {$ifopt D+}, which the compiler accepts, but also ignores: the code between ifopt and endif is not executed.
The compiler also gives an error message when having spaces between the "+" and the "}".

For this specific example, there is also an alternative: {$ifdef Debug}.

This is a small issue really, but I also think the compiler should either handle an ifopt properly or give an error message that this is not supported.

We will pass this on to the pas2js team.