-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Changelog | ||
|
||
## Unreleased | ||
- Add `git rebase` support | ||
|
||
## 0.12.58 - 2023-10-06 | ||
- Add `gitcommit` support | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
; 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)$")) | ||
|
||
((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)$")) | ||
|
||
(option) @operator | ||
|
||
(comment) @comment |
Submodule git-rebase
added at
d8a420
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters