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)
Mon, Dec 16, 5:51 AM
Unknown Object (File)
Mon, Dec 16, 5:51 AM
Unknown Object (File)
Mon, Dec 16, 5:51 AM
Unknown Object (File)
Mon, Dec 16, 5:51 AM
Unknown Object (File)
Sat, Dec 7, 7:26 AM
Unknown Object (File)
Nov 19 2024, 10:08 AM
Unknown Object (File)
Nov 9 2024, 4:04 PM
Unknown Object (File)
Oct 23 2024, 10:29 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