feat: add gitcommit parser

This commit is contained in:
gbprod 2022-11-24 08:54:54 +01:00 committed by Stephan Seitz
parent fb4058448a
commit 118a87f7e7
4 changed files with 45 additions and 0 deletions

View 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
(subject (overflow) @text)
(prefix (type) @keyword)
(prefix (scope) @parameter)
(prefix [
"("
")"
":"
] @punctuation.delimiter)
(prefix [
"!"
] @punctuation.special)
(message) @text
(trailer (token) @label)
(trailer (value) @text)
(breaking_change (token) @text.warning)
(breaking_change (value) @text)
(scissor) @comment
(ERROR) @error

View file

@ -0,0 +1,2 @@
(diff) @diff
(rebase_command) @git_rebase