mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 03:26:52 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
33
runtime/queries/gitcommit/highlights.scm
Normal file
33
runtime/queries/gitcommit/highlights.scm
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
(comment) @comment
|
||||
(generated_comment) @comment
|
||||
(title) @text.title
|
||||
(text) @text
|
||||
(branch) @text.reference
|
||||
(change) @keyword
|
||||
(filepath) @text.uri
|
||||
(arrow) @punctuation.delimiter
|
||||
|
||||
(subject) @text.title @spell
|
||||
(subject (overflow) @text @spell)
|
||||
(prefix (type) @keyword @nospell)
|
||||
(prefix (scope) @parameter @nospell)
|
||||
(prefix [
|
||||
"("
|
||||
")"
|
||||
":"
|
||||
] @punctuation.delimiter)
|
||||
(prefix [
|
||||
"!"
|
||||
] @punctuation.special)
|
||||
|
||||
(message) @text @spell
|
||||
|
||||
(trailer (token) @label)
|
||||
(trailer (value) @text)
|
||||
|
||||
(breaking_change (token) @text.warning)
|
||||
(breaking_change (value) @text @spell)
|
||||
|
||||
(scissor) @comment
|
||||
|
||||
(ERROR) @error
|
||||
5
runtime/queries/gitcommit/injections.scm
Normal file
5
runtime/queries/gitcommit/injections.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
((diff) @injection.content
|
||||
(#set! injection.language "diff"))
|
||||
|
||||
((rebase_command) @injection.content
|
||||
(#set! injection.language "git_rebase"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue