claytonrcarter / tree-sitter-phpdoc

PHPDoc grammar for tree-sitter
22 stars 11 forks source link

Spaces in compound types are recognized as `@param` field separators #35

Closed przepompownia closed 2 months ago

przepompownia commented 4 months ago

Let's look at the example below (in Neovim):

/**
 * @param array<array{string, string, bool}> $example
 */

image

Maybe it's similar to #26.

claytonrcarter commented 2 months ago

Thanks for the report! I think that this is more closely related to #27, though, and our lack of support for array shapes. (ie the {..., ..., ...} part)

Closing as a duplicate of #27, but please feel free to reopen if you disagree with my conclusion.

claytonrcarter commented 2 months ago

FYI see #39, which may address this

przepompownia commented 2 months ago

No problem especially that #27 is still open. Thanks for your attention anyway.