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
F19911695: D21208.diff
Thu, Apr 2, 2:27 PM
F19903471: D21208.id50505.diff
Tue, Mar 31, 1:47 AM
F19897146: D21208.diff
Sun, Mar 29, 6:37 AM
F19896831: D21208.diff
Sun, Mar 29, 5:15 AM
F19608525: D21208.diff
Feb 3 2026, 1:00 PM
F19552043: D21208.diff
Jan 28 2026, 9:33 PM
F19552039: D21208.diff
Jan 28 2026, 9:31 PM
F19511866: D21208.id50504.diff
Jan 12 2026, 8:50 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