git.tmbundle
git.tmbundle copied to clipboard
In a git-rebase-todo file, parsing for comment syntax is incomplete. Not all comments have correct syntax highlighting.
Inside git-rebase-todo files, there is no syntax highlighting for # comments

Steps to Reproduce:
- Ensure clean git status
- Create an empty commit
git commit -m "asdf" --allow-empty - Start interactive rebase
git rebase -i HEAD~1 - Note the line with
pick 809y2e3 asdfends with# empty. This is a code comment in this file. - Add a line to the
git-rebase-todofile: -
exec echo 'asdf' # comment - Close file, to begin rebasing.
- Observe that the
echo 'asdf'prints a plainasdfand the# commentdoes not interfere at all.
If you scroll to the bottom of a git-rebase-todo file, you'll see a large block of comments created by git, a guide for doing the interactive rebase. Note that these comments are green (I'm using vscode's default dark theme)