Debian Codegraph @

runtime/queries/git-rebase/highlights.scm

raw symbols SCIP
1 ; a rough translation:
2 ; * constant.builtin - git hash
3 ; * constant - a git label
4 ; * keyword - command that acts on commits commits
5 ; * function - command that acts only on labels
6 ; * comment - discarded commentary on a command, has no effect on the rebase
7 ; * string - text used in the rebase operation
8 ; * operator - a 'switch' (used in fixup and merge), either -c or -C at time of writing
9
10 (((command) @keyword
11 (label) @constant.builtin
12 (message)? @comment)
13 (#match? @keyword "^(p|pick|r|reword|e|edit|s|squash|d|drop)$"))
14
15 (((command) @function
16 (label) @constant
17 (message)? @comment)
18 (#match? @function "^(l|label|t|reset|u|update-ref)$"))
19
20 ((command) @keyword
21 (#match? @keyword "^(x|exec|b|break)$"))
22
23 (((command) @attribute
24 (label) @constant.builtin
25 (message)? @comment)
26 (#match? @attribute "^(f|fixup)$"))
27
28 (((command) @keyword
29 (label) @constant.builtin
30 (label) @constant
31 (message) @string)
32 (#match? @keyword "^(m|merge)$"))
33
34 (option) @operator
35
36 (comment) @comment