micro
micro copied to clipboard
git-rebase-todo syntax is broken by new git-commit syntax
trafficstars
Description of the problem or steps to reproduce
#2330 wrongfully added git-rebase-todo to the filename rule of git-commit, overriding the existing git-rebase-todo syntax and thus breaking the ability to highlight rebase todo commands (the commit message syntax is a very different format).
Steps to reproduce:
- open a file named
git-rebase-todo, either manually or while doing an interactive rebase in git - observe that the filetype is set to
git-commitinstead ofgit-rebase-todo-- the problem has already been reproduced by that point - as further observation, a valid rebase command like
pick dd26cc7c85 commit message hereremains unhighlighted; the command and hash should be in a different colour
Specifications
Commit hash: v2.0.11 tag, built from the tarball on the release page
OS: Voidlinux
Terminal: Konsole
An example of the git-rebase-todo syntax working properly, taken in the previous version of micro

Fixed in #2564