From 621423f2fefa30dad3fa13e2c556e8e47113349b Mon Sep 17 00:00:00 2001 From: Michael Davis Date: Mon, 5 Sep 2022 09:37:02 -0500 Subject: [PATCH] Update tree-sitter-diff This change also renames the grammar from `git-diff` to `diff`. The grammar covers regular diff syntax so I renamed the repository a while ago. --- languages.toml | 6 +++--- runtime/queries/{git-diff => diff}/highlights.scm | 0 2 files changed, 3 insertions(+), 3 deletions(-) rename runtime/queries/{git-diff => diff}/highlights.scm (100%) diff --git a/languages.toml b/languages.toml index aee00f45cc3a0..e288db8f49578 100644 --- a/languages.toml +++ b/languages.toml @@ -978,7 +978,7 @@ name = "git-commit" source = { git = "https://github.com/the-mikedavis/tree-sitter-git-commit", rev = "318dd72abfaa7b8044c1d1fbeabcd06deaaf038f" } [[language]] -name = "git-diff" +name = "diff" scope = "source.diff" roots = [] file-types = ["diff"] @@ -987,8 +987,8 @@ comment-token = "#" indent = { tab-width = 2, unit = " " } [[grammar]] -name = "git-diff" -source = { git = "https://github.com/the-mikedavis/tree-sitter-git-diff", rev = "c12e6ecb54485f764250556ffd7ccb18f8e2942b" } +name = "diff" +source = { git = "https://github.com/the-mikedavis/tree-sitter-diff", rev = "fd74c78fa88a20085dbc7bbeaba066f4d1692b63" } [[language]] name = "git-rebase" diff --git a/runtime/queries/git-diff/highlights.scm b/runtime/queries/diff/highlights.scm similarity index 100% rename from runtime/queries/git-diff/highlights.scm rename to runtime/queries/diff/highlights.scm