tree-sitter-phpdoc icon indicating copy to clipboard operation
tree-sitter-phpdoc copied to clipboard

Full phpDoc support

Open claytonrcarter opened this issue 4 years ago • 0 comments

The following items are known incomplete. They are recognized as tags, but the fields, types, optional fields, etc are not correct.

  • [ ] @subpackage
  • [ ] @example
  • [ ] inline @example
  • [ ] @license
  • [ ] @package
  • [ ] @source
  • [ ] @uses
  • [ ] @link (also inline)
  • [ ] @see
  • [ ] *@tag is currently parsed as a tag (the leading * should not be included)
  • [ ] grouped types aren't supported at all (types, union types, array types are OK, but things like (int|string)[] are not)
    • Atom's language-php includes a spec for ((Test|int)[]|Test\\Type[]|string[]|resource)[], which ... yuck
    • this might not be need to be so robust, though, as most examples seem to be more like (int|false)

claytonrcarter avatar Sep 01 '21 02:09 claytonrcarter