Rather than just recognizing incomplete constructs, the parser can attempt to guess a minimal edit which completes the construct and gets rid of the syntax error.1

Footnotes

  1. Resilient LL Parsing Tutorial