If there are syntax errors then the compilation will fail.
You should read this:
You are using GPIO0(D2) and GPIO2 (D4) which are also used by Edgent.
Do you really need to use Edgent? The only thing you gain is dynamic provisioning and Blynk.Air, but Blynk.Air won’t work with deepsleep.
The code structure with Blynk and deepsleep can be quite tricky. Throw-in the complexity of Edgent and it gets a lot more complex.