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

feat: support php 8.4 and other improvements

Open calebdw opened this issue 1 year ago • 2 comments

Closes #246

Changes:

  • [PHP8.4] add support for new without parentheses
  • [PHP8.4] add support for property hooks
  • create anonymous_class rule
  • rename _variable_name => _simple_variable to match php parser
  • rename _class_type_designator => _class_name_reference to match php parser
  • remove unnecessary semicolon from class declaration
  • simplify by_ref definition
  • create new _identifier and _name rules
  • create _dereferencable_scalar rule to match php parser
  • [BC] cleanup namespace rules
    • removed namespace_name_as_prefix, uses prefix field
    • removed namespace_aliasing_clause, uses alias field
    • removed namespace_use_group_clause, now uses namespace_use_clause inside namespace_use_group
  • [BC] rename anonymous_function_creation_expression => anonymous_function
  • remove inline rules to decrease state count (2627 => 2507)
  • [BC] remove property_initializer rule, now uses a default_value field

Due to the BCs I plan to bump version to 0.23.0 after merging

calebdw avatar Jun 06 '24 02:06 calebdw

nice, I'll take a look soon

amaanq avatar Jun 08 '24 22:06 amaanq

BTW @amaanq did you see my email? I tried to contact you on gmail but no answer :(

aryx avatar Jun 17 '24 12:06 aryx

Bumping to 0.23.0 is fine, I only ask that you do that when I release 0.23.0 upstream (soon)

(amended with generate optimization on master)

amaanq avatar Aug 17 '24 17:08 amaanq

thanks a ton again @calebdw, and I'm really sorry for taking a while :grimacing:

amaanq avatar Aug 17 '24 17:08 amaanq

No worries! Thanks for looking at it!

calebdw avatar Aug 17 '24 17:08 calebdw