mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(diff): more comprehensive highlights
This commit is contained in:
parent
cd626dc48e
commit
3aa2e2f374
2 changed files with 33 additions and 2 deletions
|
|
@ -111,7 +111,7 @@
|
|||
"revision": "affb6ee38d629c9296749767ab832d69bb0d9ea8"
|
||||
},
|
||||
"diff": {
|
||||
"revision": "710e881127512bda8157096e26c1f3e91702823a"
|
||||
"revision": "629676fc3919606964231b2c7b9677d6998a2cb4"
|
||||
},
|
||||
"disassembly": {
|
||||
"revision": "0229c0211dba909c5d45129ac784a3f4d49c243a"
|
||||
|
|
|
|||
|
|
@ -12,4 +12,35 @@
|
|||
|
||||
(location) @attribute
|
||||
|
||||
(command) @function
|
||||
(command
|
||||
"diff" @function
|
||||
(argument) @variable.parameter)
|
||||
|
||||
(filename) @string.special.path
|
||||
|
||||
(mode) @number
|
||||
|
||||
[
|
||||
".."
|
||||
"+"
|
||||
"++"
|
||||
"+++"
|
||||
"++++"
|
||||
"-"
|
||||
"--"
|
||||
"---"
|
||||
"----"
|
||||
] @punctuation.special
|
||||
|
||||
[
|
||||
(binary_change)
|
||||
(similarity)
|
||||
(file_change)
|
||||
] @label
|
||||
|
||||
(index
|
||||
"index" @keyword)
|
||||
|
||||
(similarity
|
||||
(score) @number
|
||||
"%" @number)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue