aboutsummaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorCaleb White <cdwhite3@pm.me>2025-06-16 22:29:40 -0500
committerChristian Clason <ch.clason+github@icloud.com>2025-08-12 10:25:14 +0200
commit42ea5392432253188c11c31af420a0b83bb111dc (patch)
tree0e7ae75a479a7537c2a80b2acd5884c73781ff02 /runtime
parentfeat(sproto): add parser (diff)
downloadnvim-treesitter-42ea5392432253188c11c31af420a0b83bb111dc.tar
nvim-treesitter-42ea5392432253188c11c31af420a0b83bb111dc.tar.gz
nvim-treesitter-42ea5392432253188c11c31af420a0b83bb111dc.tar.bz2
nvim-treesitter-42ea5392432253188c11c31af420a0b83bb111dc.tar.lz
nvim-treesitter-42ea5392432253188c11c31af420a0b83bb111dc.tar.xz
nvim-treesitter-42ea5392432253188c11c31af420a0b83bb111dc.tar.zst
nvim-treesitter-42ea5392432253188c11c31af420a0b83bb111dc.zip
feat(php): update php and php_only parsers to v0.24.0
Diffstat (limited to 'runtime')
-rw-r--r--runtime/queries/php_only/highlights.scm17
1 files changed, 9 insertions, 8 deletions
diff --git a/runtime/queries/php_only/highlights.scm b/runtime/queries/php_only/highlights.scm
index 2d473dd0c..8258e29ad 100644
--- a/runtime/queries/php_only/highlights.scm
+++ b/runtime/queries/php_only/highlights.scm
@@ -44,21 +44,16 @@
"protected"
"public"
"readonly"
- (static_modifier)
+ "static"
] @keyword.modifier
-(function_static_declaration
- "static" @keyword.modifier)
-
[
"return"
"exit"
"yield"
+ "yield from"
] @keyword.return
-(yield_expression
- "from" @keyword.return)
-
[
"case"
"else"
@@ -107,7 +102,7 @@
[
(php_tag)
- "?>"
+ (php_end_tag)
"("
")"
"["
@@ -477,3 +472,9 @@
(comment) @comment @spell
(named_label_statement) @label
+
+(property_hook
+ (name) @label)
+
+(visibility_modifier
+ (operation) @label)