Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

php: Update Pest tree-sitter queries to capture single quotes (#12467)

Sean Washington436a8fa0ced8
diff --git a/extensions/php/languages/php/outline.scm b/extensions/php/languages/php/outline.scm
index aff05692fb1..f837ce0d87b 100644
--- a/extensions/php/languages/php/outline.scm
+++ b/extensions/php/languages/php/outline.scm
@@ -35,7 +35,10 @@
arguments: (arguments
.
(argument
- (encapsed_string (string_value) @name)
+ [
+ (encapsed_string (string_value) @name)
+ (string (string_value) @name)
+ ]
)
)
) @item
diff --git a/extensions/php/languages/php/runnables.scm b/extensions/php/languages/php/runnables.scm
index cde3d956361..157e0be5a05 100644
--- a/extensions/php/languages/php/runnables.scm
+++ b/extensions/php/languages/php/runnables.scm
@@ -94,7 +94,10 @@
arguments: (arguments
.
(argument
- (encapsed_string (string_value) @run)
+ [
+ (encapsed_string (string_value) @run)
+ (string (string_value) @run)
+ ]
)
)
) @pest-test