D-Scanner icon indicating copy to clipboard operation
D-Scanner copied to clipboard

In-statement followed by out-condition causes parser error

Open FeepingCreature opened this issue 5 years ago • 4 comments

Consider this code:

void foo()
in { }
out (; true)
{ }

This compiles fine with DMD 2.081 and up; however, dscanner 0.5.11 fails with "test.d(4:1)[error]: do exptected (sic) after InStatement or OutStatement".

FeepingCreature avatar Oct 19 '18 06:10 FeepingCreature

It's an issue in dparser. Fix in progress.

edit: https://github.com/dlang-community/libdparse/pull/292

FeepingCreature avatar Oct 19 '18 06:10 FeepingCreature

Fixed in master libdparse, please pull up?

FeepingCreature avatar Oct 19 '18 07:10 FeepingCreature

Unfortunately part of the changes planed for dparse 0.10.x are already in trunk. Can this wait 1 week ? There are just two remaining PR and then D-Scanner DCD etc will be updated to use it (possible breaking changes starting from 0.10.x).

ghost avatar Oct 19 '18 12:10 ghost

Sure, nbd, I worked around locally anyway.

FeepingCreature avatar Oct 19 '18 14:10 FeepingCreature