feat(php): update php and php_only parsers to v0.24.0

This commit is contained in:
Caleb White 2025-06-16 22:29:40 -05:00
parent 43b7f16c50
commit 1f9e71ac40
No known key found for this signature in database
GPG key ID: 32077EE10EF10764
2 changed files with 10 additions and 7 deletions

View file

@ -1566,7 +1566,7 @@ return {
php = { php = {
install_info = { install_info = {
location = 'php', location = 'php',
revision = 'b2278dbac9d58b02653fe6a8530ccebc492e4ed4', revision = 'a54c9f200b9d2c1e8a6f4b75eaa6680db5c1e8e4',
url = 'https://github.com/tree-sitter/tree-sitter-php', url = 'https://github.com/tree-sitter/tree-sitter-php',
}, },
maintainers = { '@tk-shirasaka', '@calebdw' }, maintainers = { '@tk-shirasaka', '@calebdw' },
@ -1577,7 +1577,7 @@ return {
php_only = { php_only = {
install_info = { install_info = {
location = 'php_only', location = 'php_only',
revision = 'b2278dbac9d58b02653fe6a8530ccebc492e4ed4', revision = 'a54c9f200b9d2c1e8a6f4b75eaa6680db5c1e8e4',
url = 'https://github.com/tree-sitter/tree-sitter-php', url = 'https://github.com/tree-sitter/tree-sitter-php',
}, },
maintainers = { '@tk-shirasaka', '@calebdw' }, maintainers = { '@tk-shirasaka', '@calebdw' },

View file

@ -44,12 +44,9 @@
"protected" "protected"
"public" "public"
"readonly" "readonly"
(static_modifier) "static"
] @keyword.modifier ] @keyword.modifier
(function_static_declaration
"static" @keyword.modifier)
[ [
"return" "return"
"exit" "exit"
@ -107,7 +104,7 @@
[ [
(php_tag) (php_tag)
"?>" (php_end_tag)
"(" "("
")" ")"
"[" "["
@ -477,3 +474,9 @@
(comment) @comment @spell (comment) @comment @spell
(named_label_statement) @label (named_label_statement) @label
(property_hook
(name) @label)
(visibility_modifier
(operation) @label)