Changeset View
Changeset View
Standalone View
Standalone View
src/parser/PhutilDocblockParser.php
| <?php | <?php | ||||
| /** | /** | ||||
| * Parse a docblock comment from source code into raw text documentation and | * Parse a docblock comment from source code into raw text documentation and | ||||
| * metadata (like "@author" and "@return"). | * metadata (like "@author" and "@return"). | ||||
| */ | */ | ||||
| final class PhutilDocblockParser { | final class PhutilDocblockParser extends Phobject { | ||||
| public function extractDocblocks($text) { | public function extractDocblocks($text) { | ||||
| $blocks = array(); | $blocks = array(); | ||||
| $matches = null; | $matches = null; | ||||
| $match = preg_match_all( | $match = preg_match_all( | ||||
| '@(/\*\*.*?\*/)@s', | '@(/\*\*.*?\*/)@s', | ||||
| $text, | $text, | ||||
| ▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines | |||||