phpdoc-parser/doc/grammars/phpdoc-param.peg
2022-06-08 20:02:43 +02:00

18 lines
292 B
Plaintext

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