summaryrefslogtreecommitdiffstats
path: root/queries/gitcommit/highlights.scm
blob: ff0c4ddb35539b934a447d51b8848f04a9589f9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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