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

18 lines
292 B
Plaintext
Raw Permalink Normal View History

2017-11-12 23:21:58 +01:00
PhpDocParam
2022-06-08 20:02:43 +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
= '&'
2022-05-13 21:38:22 +02:00
IsVariadic
= '...'
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