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