diff options
author | Daniel S Poulin | 2022-01-16 01:11:47 +0000 |
---|---|---|
committer | GitHub | 2022-01-16 01:11:47 +0000 |
commit | dd1f64d4dc6fa7a5a8f0b6404e7d30cedcb5b10a (patch) | |
tree | a142b072e8ae78762161327424922684ef0607f4 /runtime | |
parent | a7b0cc730c9d18d214ef194ff0cb5d2ccfa8b762 (diff) |
Update tree-sitter-php to latest upstream (#1521)
Brings in PHP 8.1 features, like enums, union types and the like.
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/queries/php/highlights.scm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/queries/php/highlights.scm b/runtime/queries/php/highlights.scm index 46b5d26c..5379fa1e 100644 --- a/runtime/queries/php/highlights.scm +++ b/runtime/queries/php/highlights.scm @@ -5,7 +5,8 @@ (primitive_type) @type.builtin (cast_type) @type.builtin -(type_name (name) @type) +(named_type (name) @type) @type +(named_type (qualified_name) @type) @type ; Functions @@ -85,10 +86,12 @@ "endif" @keyword "endswitch" @keyword "endwhile" @keyword +"enum" @keyword "extends" @keyword "final" @keyword "finally" @keyword "foreach" @keyword +"fn" @keyword "function" @keyword "global" @keyword "if" @keyword @@ -97,6 +100,7 @@ "include" @keyword "insteadof" @keyword "interface" @keyword +"match" @keyword "namespace" @keyword "new" @keyword "private" @keyword |