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
F19062396: D21208.diff
Nov 29 2025, 3:43 PM
F19060126: D21208.id50504.diff
Nov 29 2025, 8:37 AM
F18898701: D21208.id.diff
Nov 7 2025, 7:06 PM
F18715834: D21208.id.diff
Sep 29 2025, 10:47 AM
F18658378: D21208.id50505.diff
Sep 23 2025, 6:09 AM
F18645160: D21208.diff
Sep 19 2025, 7:02 AM
F18577489: D21208.diff
Sep 10 2025, 7:08 PM
F18444284: D21208.id.diff
Aug 31 2025, 7:34 PM
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