fix(treesitter): queries for bundled diff parser #40866

This commit is contained in:
Barrett Ruth authored and GitHub committed 2026-07-22 12:03:34 -04:00
1 parent e397b2c2ca
commit fe6c1cb4bd
3 files changed
+55

No files matched your search

+1
View File
@@ -23,6 +23,7 @@ search for in the `parser` runtime directory.
Nvim includes these parsers:
- C
- Diff
- Lua
- Markdown
- Vimscript
+5
View File
@@ -0,0 +1,5 @@
[
(block)
(hunks)
(hunk)
] @fold
+49
View File
@@ -0,0 +1,49 @@
(comment) @comment @spell
[
(addition)
(new_file)
] @diff.plus
[
(deletion)
(old_file)
] @diff.minus
(commit) @constant
(location) @attribute
(command
"diff" @function
(argument) @variable.parameter)
(filename) @string.special.path
(mode) @number
([
".."
"+"
"++"
"+++"
"++++"
"-"
"--"
"---"
"----"
] @punctuation.special
(#set! priority 95))
[
(binary_change)
(similarity)
(file_change)
] @label
(index
"index" @keyword)
(similarity
(score) @number
"%" @number)