aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Davis2022-09-06 03:02:37 +0000
committerGitHub2022-09-06 03:02:37 +0000
commit43b31f702a13d3ced2dc414d2febe5bcf222366a (patch)
tree776e285bdff716d0be726421a7b4e2945325c10e
parentf7c216d497efdca8de61a0deb34449c85c6d5229 (diff)
Update tree-sitter-diff (#3708)
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.
-rw-r--r--book/src/generated/lang-support.md2
-rw-r--r--languages.toml6
-rw-r--r--runtime/queries/diff/highlights.scm (renamed from runtime/queries/git-diff/highlights.scm)0
3 files changed, 4 insertions, 4 deletions
diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md
index 467e4c5e..4e10ffc1 100644
--- a/book/src/generated/lang-support.md
+++ b/book/src/generated/lang-support.md
@@ -15,6 +15,7 @@
| cue | ✓ | | | `cuelsp` |
| dart | ✓ | | ✓ | `dart` |
| devicetree | ✓ | | | |
+| diff | ✓ | | | |
| dockerfile | ✓ | | | `docker-langserver` |
| dot | ✓ | | | `dot-language-server` |
| edoc | ✓ | | | |
@@ -32,7 +33,6 @@
| git-attributes | ✓ | | | |
| git-commit | ✓ | | | |
| git-config | ✓ | | | |
-| git-diff | ✓ | | | |
| git-ignore | ✓ | | | |
| git-rebase | ✓ | | | |
| gleam | ✓ | ✓ | | `gleam` |
diff --git a/languages.toml b/languages.toml
index aee00f45..e288db8f 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
index 1c1a8829..1c1a8829 100644
--- a/runtime/queries/git-diff/highlights.scm
+++ b/runtime/queries/diff/highlights.scm