
Brings over the improvements made for the same grammar: https://github.com/nvim-treesitter/nvim-treesitter/pull/6619. Related to #19986 but not really- the problem brought up there is an issue of themes not supporting the `diff.plus` and `diff.minus` captures (already used before this PR). <details><summary>Theme previews (before/after)</summary> | Before | After | | --- | --- | |  |  | | Before | After | | --- | --- | |  |  | | Before | After | | --- | --- | |  |  | | Before | After | | --- | --- | |  |  | | Before | After | | --- | --- | |  |  | </details> Release Notes: - Improved diff syntax highlighting
48 lines
489 B
Scheme
48 lines
489 B
Scheme
(comment) @comment
|
|
|
|
[
|
|
(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)
|
|
|
|
[
|
|
(binary_change)
|
|
(similarity)
|
|
(file_change)
|
|
] @label
|
|
|
|
(index
|
|
"index" @keyword)
|
|
|
|
(similarity
|
|
(score) @number
|
|
"%" @number)
|