Water with Mercury Adds "Finally" to Try but not "End Try"

Version 11.0.0.2719

When I type “Try” , Water for Mercury helpfully adds “Finally”, but does not also add “End Try”, which is needed or the code wont’ compile:
2022-03-06_07-44-43

It would be great if it could add “End Try” also below “Finally”.

Thanks,

–Avonelle

1 Like

Hmm. thats currently not something the smart-end system isn capable of without major restructuring, but I will have a look. it does end dd it when yo press Enter after thew Finally, right?

Logged as bugs://E25742.

No, it doesn’t seem to for me.

–Avonelle

Reproduced. THAT one io can fix right now.

Side Q: is it correct that Catch has to come BEFOR Finally? (in C# and Oxygene, any order is allowed; in Mercury currently its not, compiler side).

Fixed.

Yes, Catch has to come before Finally (I just double checked in VB.NET).

–Avonelle

1 Like

Good, then we’re consistent (and i’ve made smart-end handle it the same way, after a Finally, Catch is not to seen as valid block terminator, and End Try will be added; after Catch, either End Try or Finally is seen as valid existing terminator terminator ;).

1 Like

Cool, thanks!

–Avonelle

1 Like

bugs://E25742 was closed as won’t fix.