D-Scanner
D-Scanner copied to clipboard
In-statement followed by out-condition causes parser error
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".
It's an issue in dparser. Fix in progress.
edit: https://github.com/dlang-community/libdparse/pull/292
Fixed in master libdparse, please pull up?
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).
Sure, nbd, I worked around locally anyway.