diff --git a/lua/nvim-treesitter/parsers.lua b/lua/nvim-treesitter/parsers.lua index b493d0917..7d965a29f 100644 --- a/lua/nvim-treesitter/parsers.lua +++ b/lua/nvim-treesitter/parsers.lua @@ -1566,7 +1566,7 @@ return { php = { install_info = { location = 'php', - revision = 'b2278dbac9d58b02653fe6a8530ccebc492e4ed4', + revision = 'a54c9f200b9d2c1e8a6f4b75eaa6680db5c1e8e4', url = 'https://github.com/tree-sitter/tree-sitter-php', }, maintainers = { '@tk-shirasaka', '@calebdw' }, @@ -1577,7 +1577,7 @@ return { php_only = { install_info = { location = 'php_only', - revision = 'b2278dbac9d58b02653fe6a8530ccebc492e4ed4', + revision = 'a54c9f200b9d2c1e8a6f4b75eaa6680db5c1e8e4', url = 'https://github.com/tree-sitter/tree-sitter-php', }, maintainers = { '@tk-shirasaka', '@calebdw' }, diff --git a/runtime/queries/php_only/highlights.scm b/runtime/queries/php_only/highlights.scm index 2d473dd0c..f6e633654 100644 --- a/runtime/queries/php_only/highlights.scm +++ b/runtime/queries/php_only/highlights.scm @@ -44,12 +44,9 @@ "protected" "public" "readonly" - (static_modifier) + "static" ] @keyword.modifier -(function_static_declaration - "static" @keyword.modifier) - [ "return" "exit" @@ -107,7 +104,7 @@ [ (php_tag) - "?>" + (php_end_tag) "(" ")" "[" @@ -477,3 +474,9 @@ (comment) @comment @spell (named_label_statement) @label + +(property_hook + (name) @label) + +(visibility_modifier + (operation) @label)