phpdoc-parser/doc/grammars/phpdoc-param.peg
2021-09-16 22:27:44 +02:00

18 lines
291 B
Plaintext

PhpDocParam
= AnnotationName Type IsReference? IsVariadic? ParameterName Description?
AnnotationName
= '@param'
IsReference
= '&'
IsVariaric
= '...'
ParameterName
= '$' [a-zA-Z_\127-\255][a-zA-Z0-9_\127-\255]*
Description
= .+ # TODO: exclude EOL or another PhpDocTag start