Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/markup/blockrule/PhutilRemarkupLiteralBlockRule.php
<?php | <?php | ||||
final class PhutilRemarkupLiteralBlockRule extends PhutilRemarkupBlockRule { | final class PhutilRemarkupLiteralBlockRule extends PhutilRemarkupBlockRule { | ||||
public function getPriority() { | public function getPriority() { | ||||
return 450; | return 450; | ||||
} | } | ||||
public function getMatchingLineCount(array $lines, $cursor) { | public function getMatchingLineCount(array $lines, $cursor) { | ||||
// NOTE: We're consuming all continguous blocks of %%% literals, so this: | // NOTE: We're consuming all contiguous blocks of %%% literals, so this: | ||||
// | // | ||||
// %%%a%%% | // %%%a%%% | ||||
// %%%b%%% | // %%%b%%% | ||||
// | // | ||||
// ...is equivalent to: | // ...is equivalent to: | ||||
// | // | ||||
// %%%a | // %%%a | ||||
// b%%% | // b%%% | ||||
▲ Show 20 Lines • Show All 93 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0