From 436a8fa0ced8d12ca019cb227333e0fe2a6102ff Mon Sep 17 00:00:00 2001 From: Sean Washington Date: Thu, 30 May 2024 07:37:41 -0700 Subject: [PATCH] php: Update Pest tree-sitter queries to capture single quotes (#12467) Improved PHP Pest outline and runnables to support single quoted arguments ([#12461](https://github.com/zed-industries/zed/issues/12461)). Release Notes: - N/A | Before | After | |--------|--------| | ![image](https://github.com/zed-industries/zed/assets/428033/e0966510-da11-4a80-8901-7dba541ab721) | ![CleanShot 2024-05-29 at 20 13 00@2x](https://github.com/zed-industries/zed/assets/428033/5f7ab492-2791-4a04-9ec3-f0adfa9b2986) | | ![CleanShot 2024-05-29 at 20 18 11@2x](https://github.com/zed-industries/zed/assets/428033/ac6bf58b-4e7d-410d-af51-328c41a76ba0) | ![CleanShot 2024-05-29 at 20 14 35@2x](https://github.com/zed-industries/zed/assets/428033/1d226bb8-f102-4171-906d-e122ab8299cf) | --- extensions/php/languages/php/outline.scm | 5 ++++- extensions/php/languages/php/runnables.scm | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/extensions/php/languages/php/outline.scm b/extensions/php/languages/php/outline.scm index aff05692fb..f837ce0d87 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 cde3d95636..157e0be5a0 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