BUG? Preprocessor directive LINQPAD
Preprocessor directive LINQPAD is always defined within LINQPad but code appears as if not defined in the code editor.... code ends up compiling.
Code editor coloring works fine for other directives.
Sample below running as C# Program.
Discovered in v5.31.... tested in v5.33 as well.
Code editor coloring works fine for other directives.
Sample below running as C# Program.
Discovered in v5.31.... tested in v5.33 as well.
//#define LINQPADTEST
void Main()
{
#if LINQPAD
//#if LINQPADTEST
"Hello world!".Dump();
#endif
}
Comments
Hello Joe,
Just wondering if this has regressed as I'm seeing incorrect code highlighting in LINQPad 5.47? (Note LINQPad 7 is fine).
Here's a screenshot:
Best regards
John
Maybe related: When a
#load
ed query contains more than one#region...#endregion
directive, the loading query fails. Removing the#region
works around.@sixdiamants Does this happen with the latest beta, and if so, could you please provide a repro?
@JohnGoldsmith thanks: will fix this in the next LINQPad 5 build.