File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ private function generateRegexp(): string
146146
147147 self ::TOKEN_OPEN_PHPDOC => '/ \\* \\*(?= \\s) \\x20?+ ' ,
148148 self ::TOKEN_CLOSE_PHPDOC => '\\*/ ' ,
149- self ::TOKEN_PHPDOC_TAG => '@[a-z][a-z0-9- \\\\]*+ ' ,
149+ self ::TOKEN_PHPDOC_TAG => '@(?:[a-z][a-z0-9- \\\\ ]+:)? [a-z][a-z0-9- \\\\]*+ ' ,
150150 self ::TOKEN_PHPDOC_EOL => '\\r?+ \\n[ \\x09 \\x20]*+(?: \\*(?!/) \\x20?+)? ' ,
151151
152152 self ::TOKEN_FLOAT => '(?:-?[0-9]++ \\.[0-9]*+(?:e-?[0-9]++)?)|(?:-?[0-9]*+ \\.[0-9]++(?:e-?[0-9]++)?)|(?:-?[0-9]++e-?[0-9]++) ' ,
Original file line number Diff line number Diff line change @@ -75,6 +75,7 @@ protected function setUp(): void
7575
7676 /**
7777 * @dataProvider provideTagsWithNumbers
78+ * @dataProvider provideSpecializedTags
7879 * @dataProvider provideParamTagsData
7980 * @dataProvider provideTypelessParamTagsData
8081 * @dataProvider provideVarTagsData
@@ -4851,6 +4852,22 @@ public function provideParamOutTagsData(): Iterator
48514852 ];
48524853 }
48534854
4855+ public function provideSpecializedTags (): Iterator
4856+ {
4857+ yield [
4858+ 'Ok specialized tag ' ,
4859+ '/** @special:param this is special */ ' ,
4860+ new PhpDocNode ([
4861+ new PhpDocTagNode (
4862+ '@special:param ' ,
4863+ new GenericTagValueNode (
4864+ 'this is special '
4865+ )
4866+ ),
4867+ ]),
4868+ ];
4869+ }
4870+
48544871 /**
48554872 * @dataProvider dataParseTagValue
48564873 * @param PhpDocNode $expectedPhpDocNode
You can’t perform that action at this time.
0 commit comments