From ba3ccb95b43908e6ba573ac08d5310b866b45f5e Mon Sep 17 00:00:00 2001 From: Kira <67888720+koffydrop@users.noreply.github.com> Date: Sat, 4 Jul 2026 16:33:47 -0300 Subject: [PATCH] fix(just): Fix injection language detection from `set shell` (#15880) --- runtime/queries/just/injections.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/queries/just/injections.scm b/runtime/queries/just/injections.scm index 26acdffa..98bb9c43 100644 --- a/runtime/queries/just/injections.scm +++ b/runtime/queries/just/injections.scm @@ -45,7 +45,7 @@ ; See https://github.com/tree-sitter/tree-sitter/issues/880 for more on that. (file - (setting "shell" ":=" "[" (string) @_langstr + (setting "shell" ":=" "[" . (string) @_langstr (#match? @_langstr ".*(powershell|pwsh|cmd).*") (#set! injection.language "powershell")) [ @@ -63,7 +63,7 @@ ]) (file - (setting "shell" ":=" "[" (string) @injection.language + (setting "shell" ":=" "[" . (string) @injection.language (#not-match? @injection.language ".*(powershell|pwsh|cmd).*")) [ (recipe -- 2.51.2