2023-02-19 21:34:47 +04:00
|
|
|
; a rough translation:
|
|
|
|
; * constant.builtin - git hash
|
|
|
|
; * constant - a git label
|
|
|
|
; * keyword - command that acts on commits commits
|
|
|
|
; * function - command that acts only on labels
|
|
|
|
; * comment - discarded commentary on a command, has no effect on the rebase
|
|
|
|
; * string - text used in the rebase operation
|
|
|
|
; * operator - a 'switch' (used in fixup and merge), either -c or -C at time of writing
|
|
|
|
|
|
|
|
(((command) @keyword
|
|
|
|
(label) @constant.builtin
|
|
|
|
(message)? @comment)
|
|
|
|
(#match? @keyword "^(p|pick|r|reword|e|edit|s|squash|d|drop)$"))
|
|
|
|
|
|
|
|
(((command) @function
|
|
|
|
(label) @constant
|
|
|
|
(message)? @comment)
|
|
|
|
(#match? @function "^(l|label|t|reset|u|update-ref)$"))
|
|
|
|
|
|
|
|
((command) @keyword
|
|
|
|
(#match? @keyword "^(x|exec|b|break)$"))
|
|
|
|
|
|
|
|
(((command) @attribute
|
|
|
|
(label) @constant.builtin
|
|
|
|
(message)? @comment)
|
|
|
|
(#match? @attribute "^(f|fixup)$"))
|
|
|
|
|
|
|
|
(((command) @keyword
|
|
|
|
(label) @constant.builtin
|
|
|
|
(label) @constant
|
|
|
|
(message) @string)
|
|
|
|
(#match? @keyword "^(m|merge)$"))
|
2021-12-31 02:58:47 +04:00
|
|
|
|
|
|
|
(option) @operator
|
|
|
|
|
2023-02-19 21:34:47 +04:00
|
|
|
(comment) @comment
|