mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 21:10:15 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
5
runtime/queries/diff/folds.scm
Normal file
5
runtime/queries/diff/folds.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
(block)
|
||||
(hunks)
|
||||
(hunk)
|
||||
] @fold
|
||||
49
runtime/queries/diff/highlights.scm
Normal file
49
runtime/queries/diff/highlights.scm
Normal 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)
|
||||
2
runtime/queries/diff/injections.scm
Normal file
2
runtime/queries/diff/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue