Skip to content

PHPdoc #18

@piotrkwiecinski

Description

@piotrkwiecinski

To support phpdoc blocks we have to use so called injections. This means delegating responsibility to other parsers.
it's a recommended way. JS tree-sitter has corresponding jsdoc too.

Based on a discussion in tree-sitter/tree-sitter-php#50

Here is an example from NVIM treesitter plugin:

https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/php/injections.scm

We have to use https://github.com/claytonrcarter/tree-sitter-phpdoc

The same is going to apply if we would like to support SQL queries in strings

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions