From cfd992b1511655fc2116af4ddd1cd0dbb3bcb85e Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Sat, 19 Mar 2022 00:43:13 -0500 Subject: update tree-sitter-git-commit (#1838) changes: - any text following a (scissors) is now contained in one (message) - this vastly improves performance on large verbose commits: no more slowness on huge commits--- languages.toml | 2 +- runtime/queries/git-commit/injections.scm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/languages.toml b/languages.toml index 4bda7136..6aa5be3c 100644 --- a/languages.toml +++ b/languages.toml @@ -830,7 +830,7 @@ indent = { tab-width = 2, unit = " " } [[grammar]] name = "git-commit" -source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "066e395e1107df17183cf3ae4230f1a1406cc972" } +source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "7ae23de633de41f8f5b802f6f05b6596df6d00c1" } [[language]] name = "git-diff" diff --git a/runtime/queries/git-commit/injections.scm b/runtime/queries/git-commit/injections.scm index cf0657f7..79f7691a 100644 --- a/runtime/queries/git-commit/injections.scm +++ b/runtime/queries/git-commit/injections.scm @@ -1,5 +1,5 @@ -((comment (scissors)) - (message) @injection.content +(((scissors) + (message) @injection.content) (#set! injection.include-children) (#set! injection.language "diff")) -- cgit v1.2.3-70-g09d2