phpdoc-parser/doc/grammars/phpdoc-param.peg

18 lines
291 B
Plaintext
Raw Permalink Normal View History

2017-11-12 23:21:58 +01:00
PhpDocParam
2021-09-16 20:10:51 +02:00
= AnnotationName Type IsReference? IsVariadic? ParameterName Description?
2017-11-12 23:21:58 +01:00
AnnotationName
= '@param'
2021-09-16 20:10:51 +02:00
IsReference
= '&'
IsVariaric
= '...'
2017-11-12 23:21:58 +01:00
ParameterName
= '$' [a-zA-Z_\127-\255][a-zA-Z0-9_\127-\255]*
Description
= .+ # TODO: exclude EOL or another PhpDocTag start