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
Unknown Object (File)
Aug 8 2026, 12:04 AM
Unknown Object (File)
Jul 4 2026, 8:17 AM
Unknown Object (File)
May 31 2026, 8:38 PM
Unknown Object (File)
Apr 16 2026, 7:07 AM
Unknown Object (File)
Apr 6 2026, 8:27 PM
Unknown Object (File)
Apr 2 2026, 2:27 PM
Unknown Object (File)
Mar 31 2026, 1:47 AM
Unknown Object (File)
Mar 29 2026, 6:37 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