on master help sign in
Update tree-sitter-php to latest upstream (#1521)

Brings in PHP 8.1 features, like enums, union types and the like.

commitdd1f64d4dc6fa7a5a8f0b6404e7d30cedcb5b10a authorDaniel S Poulin <dan.poulin@digitalsurgeons.com> dateSat 15 Jan 2022, 20:11 (5 years ago) parenta7b0cc7
2 files changed+6−2
helix-syntax/languages/tree-sitter-php+1−1 runtime/queries/php/highlights.scm+5−1
helix-syntax/languages/tree-sitter-php+1−1

Submodule changed.

runtime/queries/php/highlights.scm+5−1
@@ -5,7 +5,8 @@
55
66(primitive_type) @type.builtin
77(cast_type) @type.builtin
8−(type_name (name) @type)
8+(named_type (name) @type) @type
9+(named_type (qualified_name) @type) @type
910
1011; Functions
1112
@@ -85,10 +86,12 @@
8586"endif" @keyword
8687"endswitch" @keyword
8788"endwhile" @keyword
89+"enum" @keyword
8890"extends" @keyword
8991"final" @keyword
9092"finally" @keyword
9193"foreach" @keyword
94+"fn" @keyword
9295"function" @keyword
9396"global" @keyword
9497"if" @keyword
@@ -97,6 +100,7 @@
97100"include" @keyword
98101"insteadof" @keyword
99102"interface" @keyword
103+"match" @keyword
100104"namespace" @keyword
101105"new" @keyword
102106"private" @keyword