From eda96cc285fdd72ebcf5ab35150df69af7d3a386 Mon Sep 17 00:00:00 2001 From: Bryce Berger Date: Wed, 25 Dec 2024 08:35:34 -0700 Subject: [PATCH] Add diff injections for jjdescription tree-sitter (#12305) --- languages.toml | 2 +- runtime/queries/jjdescription/injections.scm | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 runtime/queries/jjdescription/injections.scm diff --git a/languages.toml b/languages.toml index b70658085..661982f43 100644 --- a/languages.toml +++ b/languages.toml @@ -3319,7 +3319,7 @@ text-width = 72 [[grammar]] name = "jjdescription" -source = { git = "https://github.com/kareigu/tree-sitter-jjdescription", rev = "23dd3dd18ee29bdd761642511aa314215801afd8" } +source = { git = "https://github.com/kareigu/tree-sitter-jjdescription", rev = "d09205b52b5a0165b588a793e366c1116468d86f" } [[language]] name = "jq" diff --git a/runtime/queries/jjdescription/injections.scm b/runtime/queries/jjdescription/injections.scm new file mode 100644 index 000000000..f34f44da5 --- /dev/null +++ b/runtime/queries/jjdescription/injections.scm @@ -0,0 +1,3 @@ +(((scissors_inner) @injection.content) + (#set! injection.include-children) + (#set! injection.language "diff"))