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
F15377241: D21208.id50505.diff
Thu, Mar 13, 8:27 AM
F15331516: D21208.diff
Fri, Mar 7, 10:57 AM
F15316099: D21208.id50505.diff
Thu, Mar 6, 6:21 PM
F15316097: D21208.id50504.diff
Thu, Mar 6, 6:21 PM
F15316093: D21208.id.diff
Thu, Mar 6, 6:21 PM
F15316086: D21208.diff
Thu, Mar 6, 6:21 PM
Unknown Object (File)
Mon, Mar 3, 8:59 PM
Unknown Object (File)
Thu, Feb 13, 7:16 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