Skip to content

Complete PHP support #58

@cfroystad

Description

@cfroystad

After seeing discussions about bumping parsers to 1.0 after tree-sitter 1.0 is released, I figured it'd be good to list what remains to be done before having full support for parsing PHP using tree-sitter. I guess most of these should be solved before tree-sitter-php is bumped to 1.0 - at least if a 1.0 release means committing to not changing the AST.

This list is compiled from testing the code of PHP release announcements (from 7.0). Thus, I might have missed something. Feel free to add it if that's the case.

Pre 7.0

7.1

  • Symmetric array destructuring (rfc)
  • Multi catch exception handling (rfc)

7.4

8.0

8.1

In addition, there should be some house cleaning ensuring proper names on AST nodes. E.g. class_modifier is used for both classes and functions.

I'll try to get to these over time, but will not be able to get through all of them in the near future. So if anyone else wants to grab an item, I won't complain 😄

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