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

15 lines
257 B
Plaintext
Raw Normal View History

2017-11-12 23:21:58 +01:00
PhpDocParam
= AnnotationName Type IsVariadic? ParameterName Description?
2017-11-12 23:21:58 +01:00
AnnotationName
= '@param'
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