Add a mode where we start by only looking at the current line, and if that fails, re-parse the document with a two line lookahead, and so on up to MaximumLineCountBeforeNextStage. This way, parsing will feel self-correcting, and users won't have to guess how many lines they need.
Add a mode where we start by only looking at the current line, and if that fails, re-parse the document with a two line lookahead, and so on up to MaximumLineCountBeforeNextStage. This way, parsing will feel self-correcting, and users won't have to guess how many lines they need.