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).
Details
Details
- Reviewers
- None
- Maniphest Tasks
- T13530: Unterminated remarkup literal blocks ("%%%") can trigger a parser error
- Commits
- rP462a4784325c: (stable) Fix an issue where the "%%%" parser could match too many lines in…
rP6f09edeb91e8: Fix an issue where the "%%%" parser could match too many lines in unterminated…
Added a failing test, made it pass.
Diff Detail
Diff Detail
- Repository
- rP Phabricator
- Lint
Lint Not Applicable - Unit
Tests Not Applicable