nvim-treesitter/runtime/queries/diff/highlights.scm

50 lines
518 B
Scheme
Raw Normal View History

2024-07-01 15:01:37 -07:00
(comment) @comment @spell
2024-01-06 15:05:50 +09:00
[
(addition)
(new_file)
] @diff.plus
[
(deletion)
(old_file)
] @diff.minus
(commit) @constant
2024-01-06 15:05:50 +09:00
(location) @attribute
2024-01-06 15:05:50 +09:00
(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)