Open johnperry-math opened 6 months ago
Hi @johnperry-math - thank you for the heads-up!
The fix would be adding support for declare expressions above this line https://github.com/AdaCore/libadalang-tools/blob/8702a8f4240fe4cdaaad5c0fdeeb1a27816280fd/src/pp-actions.adb#L4011 - but I wouldn't try to fix this, since we're in the process of changing completely the formatting engine. We'll make sure to support the declare expressions in the new engine.
All the best,
Nicolas
Declare expressions were introduced in Ada 2022. For example:
I used this on day 10 of Advent of Code 2023, and while it compiled and ran fine, the VSCode Ada plugin replied
This would seem to be a bug. I realize Ada 2022 support is a work in progress, but if user feedback helps prioritize things... :-)
In fact, I would be willing to contribute to this fix, and will try taking a look at it. Since I've never looked at this before, any suggestions on where to start would be appreciated.