Page MenuHomePhabricator

Fix an issue where the "%%%" parser could match too many lines in unterminated blocks
ClosedPublic

Authored by epriestley on May 3 2020, 4:18 PM.
Tags
None
Referenced Files
F18082897: D21208.id50504.diff
Tue, Aug 5, 7:51 AM
F17948574: D21208.id.diff
Thu, Jul 31, 9:27 PM
F17948159: D21208.id50505.diff
Thu, Jul 31, 8:16 PM
F17899517: D21208.diff
Tue, Jul 29, 8:39 AM
F17886043: D21208.id50504.diff
Tue, Jul 29, 12:45 AM
F17860485: D21208.diff
Sun, Jul 27, 9:52 PM
Unknown Object (File)
Jun 27 2025, 5:13 PM
Unknown Object (File)
May 25 2025, 6:53 AM
Subscribers
None

Details

Summary

Fixes T13530. The block parser could match too many lines in an unterminated "%%%" literal block. Adjust the logic to stop doing this (and hopefully be a little easier to read).

Test Plan

Added a failing test, made it pass.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable