tree-sitter-php
tree-sitter-php copied to clipboard
feat: support php 8.4 and other improvements
Closes #246
Changes:
- [PHP8.4] add support for
newwithout parentheses - [PHP8.4] add support for property hooks
- create
anonymous_classrule - rename
_variable_name=>_simple_variableto match php parser - rename
_class_type_designator=>_class_name_referenceto match php parser - remove unnecessary semicolon from class declaration
- simplify
by_refdefinition - create new
_identifierand_namerules - create
_dereferencable_scalarrule to match php parser - [BC] cleanup namespace rules
- removed
namespace_name_as_prefix, usesprefixfield - removed
namespace_aliasing_clause, usesaliasfield - removed
namespace_use_group_clause, now usesnamespace_use_clauseinsidenamespace_use_group
- removed
- [BC] rename
anonymous_function_creation_expression=>anonymous_function - remove inline rules to decrease state count (2627 => 2507)
- [BC] remove
property_initializerrule, now uses adefault_valuefield
Due to the BCs I plan to bump version to 0.23.0 after merging
nice, I'll take a look soon
BTW @amaanq did you see my email? I tried to contact you on gmail but no answer :(
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)
thanks a ton again @calebdw, and I'm really sorry for taking a while :grimacing:
No worries! Thanks for looking at it!