mirror of
https://github.com/neovim/neovim.git
synced 2026-11-02 09:49:02 -06:00
fix(treesitter): queries for bundled diff parser #40866
This commit is contained in:
1 parent
e397b2c2ca
commit
fe6c1cb4bd
3 files changed
+55
No files matched your search
@@ -23,6 +23,7 @@ search for in the `parser` runtime directory.
|
||||
Nvim includes these parsers:
|
||||
|
||||
- C
|
||||
- Diff
|
||||
- Lua
|
||||
- Markdown
|
||||
- Vimscript
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
[
|
||||
(block)
|
||||
(hunks)
|
||||
(hunk)
|
||||
] @fold
|
||||
@@ -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)
|
||||
Reference in new issue
Block a user