git.tmbundle icon indicating copy to clipboard operation
git.tmbundle copied to clipboard

In a git-rebase-todo file, parsing for comment syntax is incomplete. Not all comments have correct syntax highlighting.

Open devinrhode2 opened this issue 3 years ago • 0 comments

Original vscode issue

Inside git-rebase-todo files, there is no syntax highlighting for # comments

CleanShot 2022-08-02 at 22 17 43

Steps to Reproduce:

  1. Ensure clean git status
  2. Create an empty commit git commit -m "asdf" --allow-empty
  3. Start interactive rebase git rebase -i HEAD~1
  4. Note the line with pick 809y2e3 asdf ends with # empty. This is a code comment in this file.
  5. Add a line to the git-rebase-todo file:
  6. exec echo 'asdf' # comment
  7. Close file, to begin rebasing.
  8. Observe that the echo 'asdf' prints a plain asdf and the # comment does 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)

devinrhode2 avatar Dec 12 '22 20:12 devinrhode2