From 737ab1716fcb14d10c30128d6e1887d412892c91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Sun, 31 May 2026 21:22:26 +0900 Subject: [PATCH] lang: Update diff --- languages.toml | 2 +- runtime/queries/diff/highlights.scm | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index 37ed0c49..c552137a 100644 --- a/languages.toml +++ b/languages.toml @@ -2249,7 +2249,7 @@ indent = { tab-width = 2, unit = " " } [[grammar]] name = "diff" -source = { git = "https://github.com/the-mikedavis/tree-sitter-diff", rev = "fd74c78fa88a20085dbc7bbeaba066f4d1692b63" } +source = { git = "https://github.com/the-mikedavis/tree-sitter-diff", rev = "2520c3f934b3179bb540d23e0ef45f75304b5fed" } [[language]] name = "git-rebase" diff --git a/runtime/queries/diff/highlights.scm b/runtime/queries/diff/highlights.scm index 1c1a8829..0dc483f1 100644 --- a/runtime/queries/diff/highlights.scm +++ b/runtime/queries/diff/highlights.scm @@ -4,3 +4,7 @@ (commit) @constant (location) @attribute (command) @markup.bold + +(comment) @comment +; Rename/copy similarity percentage (`similarity index 95%`). +(score) @constant.numeric -- 2.51.2